-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
# This workflow creates a zip archive and uploads to releases | ||
|
||
name: Create Archive & Upload Releases | ||
name: Create & Upload Release | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: [ "main" ] | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: [ "main" ] | ||
tags: | ||
- '*' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
@@ -30,11 +34,18 @@ jobs: | |
with: | ||
type: 'zip' | ||
filename: 'release.zip' | ||
exclusions: '*.git*' | ||
exclusions: '*.git* /*.github/*' | ||
# Create Tarball | ||
- name: Tarball Release | ||
uses: TheDoctor0/[email protected] | ||
with: | ||
type: 'tar' | ||
filename: 'release.tar.gz' | ||
exclusions: '.git .github' | ||
# Upload the Zip Archive to releases | ||
- name: Upload Release | ||
uses: ncipollo/release-action@v1.12.0 | ||
uses: ncipollo/release-action@v1.14.0 | ||
with: | ||
artifacts: "release.zip" | ||
artifacts: "release.zip,release.tar.gz" | ||
allowUpdates: true | ||
token: ${{ secrets.GITHUB_TOKEN }} |