This repository was archived by the owner on Apr 5, 2025. It is now read-only.
chore(manifest): remove oxmysql references #7
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| create-release: | |
| name: Build and Create Tagged release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install archive tools | |
| run: sudo apt install zip | |
| - name: Checkout source code | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.repository.default_branch }} | |
| - name: Set env | |
| run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
| - name: Bump manifest version | |
| run: node .github/actions/bump-manifest.js | |
| env: | |
| TGT_RELEASE_VERSION: ${{ github.ref_name }} | |
| - name: Push manifest change | |
| uses: EndBug/add-and-commit@v8 | |
| with: | |
| add: fxmanifest.lua | |
| push: true | |
| author_name: Manifest Bumper | |
| author_email: 41898282+github-actions[bot]@users.noreply.github.com | |
| message: "chore: bump manifest version to ${{ github.ref_name }}" | |
| - name: Update tag ref | |
| uses: EndBug/latest-tag@latest | |
| with: | |
| ref: ${{ github.ref_name }} | |
| - name: Bundle files | |
| run: | | |
| mkdir -p ./temp/sync_armory | |
| cp ./{server.lua,README.md,LICENSE,fxmanifest.lua,client.lua,config.lua,locales.lua} ./temp/sync_armory | |
| cd ./temp && zip -r ../sync_armory.zip ./sync_armory | |
| - name: Create Release | |
| uses: "marvinpinto/action-automatic-releases@v1.2.1" | |
| id: auto_release | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| title: "${{ env.RELEASE_VERSION }}" | |
| prerelease: false | |
| files: sync_armory.zip | |
| env: | |
| CI: false | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |