Update buildRelease.yml

This commit is contained in:
Anthony Wang 2020-06-15 18:29:27 -05:00 committed by GitHub
parent f1effd7f76
commit 8e148ce6d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,14 @@ jobs:
- name: Increment version
run: |
echo ::set-env name=TAG_NAME::$(cat ./VERSION)
- name: Bump release version
id: bump_version
uses: christian-draeger/increment-semantic-version@1.0.1
with:
current-version: '${{ steps.bump_version.outputs.next-version }}'
version-fragment: 'feature'
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
@ -34,7 +41,7 @@ jobs:
gitToken: ${{ secrets.SLX_GIT_TOKEN }}
gitUser: ${{ secrets.SLX_GIT_USER }}
run: |
echo -e "version = 'v${{ env.TAG_NAME }}'\ngithub_username = '$gitUser'\ngithub_password = '$gitPass'\ngitlab_private_access_token = '$gitToken'"> ./builder/config.py
echo -e "version = 'v${{ steps.bump_version.outputs.next-version }}'\ngithub_username = '$gitUser'\ngithub_password = '$gitPass'\ngitlab_private_access_token = '$gitToken'"> ./builder/config.py
- name: Compile DeepSea Zip
run: |
@ -57,8 +64,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: Release ${{ env.TAG_NAME }}
tag_name: ${{ steps.bump_version.outputs.next-version }}
release_name: Release ${{ steps.bump_version.outputs.next-version }}
draft: false
prerelease: false
@ -71,7 +78,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./builder/deepsea.zip
asset_name: deepsea_v${{ env.TAG_NAME }}.zip
asset_name: deepsea_v${{ steps.bump_version.outputs.next-version }}.zip
asset_content_type: application/zip
@ -83,7 +90,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./builder/deepsea-patched.zip
asset_name: deepsea-patched_v${{ env.TAG_NAME }}.zip
asset_name: deepsea-patched_v${{ steps.bump_version.outputs.next-version }}.zip
asset_content_type: application/zip
@ -96,5 +103,21 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./builder/deepsea-minimal.zip
asset_name: deepsea-minimal_v${{ env.TAG_NAME }}.zip
asset_name: deepsea-minimal_v${{ steps.bump_version.outputs.next-version }}.zip
asset_content_type: application/zip
- name: Bump VERSION
run: |
echo ${{ steps.bump_version.outputs.next-version }} > ./VERSION
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "[Auto] bump push after build" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}