Attempting to use avakar's release action

This commit is contained in:
Edward R. Gonzalez 2023-03-30 21:37:53 -04:00
parent b05ee03609
commit 03f5441b25

View File

@ -111,40 +111,31 @@ jobs:
name: artifact name: artifact
path: ./artifact path: ./artifact
# - name: Extract artifact - name: Extract artifact
# run: | run: |
# unzip ./artifact/artifact.zip -d ./artifact unzip ./artifact/artifact.zip -d ./artifact
# - name: Create GitHub release - name: Create GitHub release
# id: create_release id: create_release
# uses: actions/create-release@v1 uses: avakar/tag-and-release@v1
# env: env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: release
# release_name: Release
# draft: false
# prerelease: false
# - name: Upload refactor.exe to the release
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./artifact/refactor.exe
# asset_name: refactor.exe
# asset_content_type: application/octet-stream
- name: Upload release build
uses: ncipollo/release-action@v1.12.0
with: with:
name: "Release" tag_name: ${{ ... }}
tag: release draft: false
artifacts: /artifact/artifact.zip prerelease: false
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }} - name: Upload refactor.exe to the release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifact/refactor.exe
asset_name: refactor.exe
asset_content_type: application/octet-stream