-
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
13 additions
and
23 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,6 +1,6 @@ | ||
# This workflow creates a zip archive and uploads to releases | ||
# This workflow creates a new releases | ||
|
||
name: Create & Upload Release | ||
name: Release | ||
|
||
# Controls when the workflow will run | ||
on: | ||
|
@@ -28,28 +28,18 @@ jobs: | |
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@master | ||
# Create Zip Archive | ||
- name: Zip Release | ||
uses: TheDoctor0/[email protected] | ||
# Increment Tag Version | ||
- name: Get next version | ||
uses: reecetech/[email protected] | ||
id: version | ||
with: | ||
type: 'zip' | ||
filename: 'release.zip' | ||
exclusions: '*.git* /*.github/*' | ||
# Create Blank Tarball File | ||
- name: Create Release Tarball File | ||
run: | | ||
touch release.tar.gz | ||
# Create Tarball | ||
- name: Tarball Release | ||
uses: TheDoctor0/[email protected] | ||
with: | ||
type: 'tar' | ||
filename: 'release.tar.gz' | ||
exclusions: '.git .github release.zip release.tar.gz' | ||
# Upload the Zip Archive to releases | ||
- name: Upload Release | ||
scheme: semver | ||
increment: patch | ||
# Create a New Release | ||
- name: Create Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifacts: "release.zip,release.tar.gz" | ||
allowUpdates: true | ||
tag: ${{ steps.version.outputs.version }} | ||
generateReleaseNotes: true | ||
makeLatest: true | ||
token: ${{ secrets.GITHUB_TOKEN }} |