attempt 2 at auto-release
This commit is contained in:
parent
f0db4f9a02
commit
0094d5c1a8
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@ -13,12 +13,16 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Get the version
|
||||||
|
id: get_version
|
||||||
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
composer install --no-dev
|
composer install --no-dev
|
||||||
cd ..
|
cd ..
|
||||||
tar cvzf shimmie2-${{ github.ref }}.tgz shimmie2
|
tar cvzf shimmie2-${{ steps.get_version.outputs.VERSION }}.tgz shimmie2
|
||||||
zip -r shimmie2-${{ github.ref }}.zip shimmie2
|
zip -r shimmie2-${{ steps.get_version.outputs.VERSION }}.zip shimmie2
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
@ -27,7 +31,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: Shimmie ${{ github.ref }}
|
release_name: Shimmie ${{ steps.get_version.outputs.VERSION }}
|
||||||
body: Automated release from tags
|
body: Automated release from tags
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
@ -39,8 +43,8 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ../shimmie2-${{ github.ref }}.zip
|
asset_path: ../shimmie2-${{ steps.get_version.outputs.VERSION }}.zip
|
||||||
asset_name: shimmie2-${{ github.ref }}.zip
|
asset_name: shimmie2-${{ steps.get_version.outputs.VERSION }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Upload Tar
|
- name: Upload Tar
|
||||||
@ -50,6 +54,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ../shimmie2-${{ github.ref }}.tgz
|
asset_path: ../shimmie2-${{ steps.get_version.outputs.VERSION }}.tgz
|
||||||
asset_name: shimmie2-${{ github.ref }}.tgz
|
asset_name: shimmie2-${{ steps.get_version.outputs.VERSION }}.tgz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user