Skip to content

Commit 38314a3

Browse files
committed
ci(releases): Automatically create tagged release on tag push
1 parent 05af75f commit 38314a3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release Publisher
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
release:
8+
name: Tagged Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
ref: ${{ github.ref }}
16+
17+
- name: Get Version Tag
18+
id: get_version_tag
19+
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
20+
21+
- name: Create Release File
22+
run: |
23+
mkdir -p ./temp/pe-basicloading
24+
cp -r ./{LICENSE,README.md,client.lua,fxmanifest.lua,web} ./temp/pe-basicloading
25+
cd ./temp && zip -r pe-basicloading-${{ steps.get_version_tag.outputs.VERSION_TAG }}.zip ./pe-basicloading
26+
27+
- name: Create and Upload Release
28+
uses: marvinpinto/action-automatic-releases@v1.2.1
29+
with:
30+
repo_token: ${{ secrets.GITHUB_TOKEN }}
31+
prerelease: false
32+
files: ./temp/pe-basicloading-${{ steps.get_version_tag.outputs.VERSION_TAG }}.zip

0 commit comments

Comments
 (0)