chore: bump manifest version to v1.0.4 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.x | |
cache: "pnpm" | |
cache-dependency-path: "web/pnpm-lock.yaml" | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
working-directory: web | |
- name: Run build | |
run: pnpm build | |
working-directory: web | |
env: | |
CI: false | |
- name: Bundle files | |
run: | | |
shopt -s extglob | |
mkdir -p ./temp/${{ github.event.repository.name }} | |
mkdir -p ./temp/${{ github.event.repository.name }}/web | |
cp ./{README.md,LICENSE,fxmanifest.lua} ./temp/${{ github.event.repository.name }} | |
cp -r ./{client,config,server} ./temp/${{ github.event.repository.name }} | |
cp -r ./web/build ./temp/${{ github.event.repository.name }}/web/build | |
cp -r ./images ./temp/${{ github.event.repository.name }}/images | |
cd ./temp && zip -r ../${{ github.event.repository.name }}.zip ./${{ github.event.repository.name }} | |
- 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 |