mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
commit
438b62b3ca
1 changed files with 9 additions and 6 deletions
15
.github/workflows/push.yml
vendored
15
.github/workflows/push.yml
vendored
|
@ -1,6 +1,5 @@
|
|||
name: push
|
||||
on:
|
||||
push:
|
||||
on: push
|
||||
jobs:
|
||||
launcher:
|
||||
name: Launcher
|
||||
|
@ -49,26 +48,30 @@ jobs:
|
|||
name: Launcher
|
||||
path: artifacts
|
||||
|
||||
- name: Get version value, set to env
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
run: echo "LAUNCHER_VERSION=$(echo ${{ github.event.ref }} | awk -F\/ '{print $3}')" >> $GITHUB_ENV
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
if: github.event.ref == 'refs/tags/*'
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: GravitLauncher ${{ github.ref }}
|
||||
release_name: GravitLauncher ${{ env.LAUNCHER_VERSION }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Pack release
|
||||
if: github.event.ref == 'refs/tags/*'
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
run: |
|
||||
cd artifacts/
|
||||
zip -r -9 ../Release.zip *
|
||||
|
||||
- name: Upload release
|
||||
if: github.event.ref == 'refs/tags/*'
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue