Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
supertommy authored Feb 10, 2023
1 parent ee14b2b commit 5bec35d
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,15 @@ jobs:
with:
filename: SourceWithAssets.zip
exclusions: '*.git*'

# - name: Delete Previous latest Release
# uses: author/action-rollback@stable
# with:
# # Using a tag name
# tag: 'latest'
# env:
# GITHUB_TOKEN: ${{ secrets.GHA_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GHA_TOKEN }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
tag_name: 'latest'
release_name: 'latest'
draft: false
repo_token: "${{ secrets.GHA_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GHA_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: ./SourceWithAssets.zip
asset_name: SourceWithAssets.zip
asset_content_type: application/zip
title: "SourceWithAssets.zip"
files: |
./SourceWithAssets.zip

0 comments on commit 5bec35d

Please sign in to comment.