Skip to content

fix(config): fix broken ammunation ped model option #11

fix(config): fix broken ammunation ped model option

fix(config): fix broken ammunation ped model option #11

Workflow file for this run

name: "release-action"
on:
push:
tags:
- "v*"
jobs:
release-action:
name: "Create Release"
runs-on: "ubuntu-latest"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.repository.default_branch }}
- name: Install ZIP
run: sudo apt install zip
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.1.1
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: "pnpm"
cache-dependency-path: "web/pnpm-lock.yaml"
- name: Create .npmrc
run: |
echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
echo "//npm.fontawesome.com/:_authToken=${{ secrets.FONT_AWESOME_PRO_TOKEN }}" >> .npmrc
working-directory: web
- name: Install dependencies
run: pnpm i --frozen-lockfile
working-directory: web
- name: Run build
run: pnpm build
working-directory: web
env:
CI: false
FONT_AWESOME_PRO_TOKEN: ${{ secrets.FONT_AWESOME_PRO_TOKEN }}
- name: Update tag ref
uses: EndBug/latest-tag@latest
with:
tag-name: ${{ github.ref_name }}
- name: Remove .npmrc file
run: rm -f .npmrc
working-directory: web
- name: Bundle files
run: |
cd web
mkdir ../temp-build
mv build ../temp-build/
rm -rf *
mv ../temp-build/build .
rmdir ../temp-build
cd ..
rm -rf ./.github ./.vscode ./.git
zip -r ${{ github.event.repository.name }}.zip . -x "*.git*"
- name: Get App Token
uses: actions/create-github-app-token@v1
id: generate_token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Create Release
uses: marvinpinto/action-automatic-releases@latest
with:
title: ${{ github.ref_name }}
repo_token: "${{ steps.generate_token.outputs.token }}"
prerelease: false
files: ${{ github.event.repository.name }}.zip