Skip to content

Commit

Permalink
ci(releases): Automatically create tagged release on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
TasoOneAsia committed Sep 24, 2021
1 parent 05af75f commit 38314a3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Publisher
on:
push:
tags:
- "*"
jobs:
release:
name: Tagged Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}

- name: Get Version Tag
id: get_version_tag
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}

- name: Create Release File
run: |
mkdir -p ./temp/pe-basicloading
cp -r ./{LICENSE,README.md,client.lua,fxmanifest.lua,web} ./temp/pe-basicloading
cd ./temp && zip -r pe-basicloading-${{ steps.get_version_tag.outputs.VERSION_TAG }}.zip ./pe-basicloading
- name: Create and Upload Release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: ./temp/pe-basicloading-${{ steps.get_version_tag.outputs.VERSION_TAG }}.zip

0 comments on commit 38314a3

Please sign in to comment.