Skip to content

Commit

Permalink
Release Test
Browse files Browse the repository at this point in the history
  • Loading branch information
odwdinc committed Jan 10, 2021
1 parent 4e88f58 commit f337ed2
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/pyinstaller-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
Expand All @@ -22,4 +20,38 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: ssbu_amiibo
path: src/dist/windows # or path/to/artifact
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

0 comments on commit f337ed2

Please sign in to comment.