From f337ed2372554ea0899fbc75552c278aede544a7 Mon Sep 17 00:00:00 2001 From: odwdinc Date: Sat, 9 Jan 2021 16:13:19 -0800 Subject: [PATCH] Release Test --- .github/workflows/pyinstaller-windows.yml | 38 +++++++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pyinstaller-windows.yml b/.github/workflows/pyinstaller-windows.yml index d7f2efc..6205f14 100644 --- a/.github/workflows/pyinstaller-windows.yml +++ b/.github/workflows/pyinstaller-windows.yml @@ -6,9 +6,7 @@ on: jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 with: @@ -22,4 +20,38 @@ jobs: - uses: actions/upload-artifact@v2 with: name: ssbu_amiibo - path: src/dist/windows # or path/to/artifact \ No newline at end of file + path: src/dist/windows # or path/to/artifact + + release: + name: Create Release + needs: build + runs-on: ubuntu-latest + steps: + - name: Download ssbu_amiibo artifact + uses: actions/download-artifact@v2 + with: + name: ssbu_amiibo + + - name: Display structure of downloaded files + run: ls -R + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + 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: ./ssbu_amiibo.zip + asset_name: ssbu_amiibo.zip + asset_content_type: application/zip \ No newline at end of file