-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 synced local '.github/' with remote 'repo-template/.github/'
- Loading branch information
1 parent
9491c74
commit 611f459
Showing
2 changed files
with
36 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "release-action" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release-action: | ||
name: "Create Release" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.repository.default_branch }} | ||
|
||
- name: Install ZIP | ||
run: sudo apt install zip | ||
|
||
- name: Bundle files | ||
run: | | ||
rm -rf ./.github ./.vscode ./.git | ||
zip -r ./${{ github.event.repository.name }}.zip ./ | ||
- name: Create Release | ||
uses: 'marvinpinto/action-automatic-releases@latest' | ||
with: | ||
title: ${{ github.ref_name }} | ||
repo_token: '${{ secrets.GITHUB_TOKEN }}' | ||
prerelease: false | ||
files: ${{ github.event.repository.name }}.zip |
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 |
---|---|---|
|
@@ -21,7 +21,6 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ steps.generate_token.outputs.token }} | ||
|
||
- name: Setup node | ||
|
@@ -40,20 +39,8 @@ jobs: | |
add: fxmanifest.lua | ||
push: true | ||
message: 'chore: bump manifest version to ${{ inputs.version }}' | ||
|
||
- name: Install ZIP | ||
run: sudo apt install zip | ||
|
||
- name: Bundle files | ||
- name: Push Git Tag | ||
run: | | ||
rm -rf ./.github ./.vscode ./.git | ||
zip -r ./${{ github.event.repository.name }}.zip ./ | ||
- name: Create Release | ||
uses: 'marvinpinto/action-automatic-releases@latest' | ||
with: | ||
title: ${{ inputs.version }} | ||
repo_token: '${{ secrets.GITHUB_TOKEN }}' | ||
automatic_release_tag: ${{ inputs.version }} | ||
prerelease: false | ||
files: ${{ github.event.repository.name }}.zip | ||
git tag ${{ inputs.version }} | ||
git push origin ${{ inputs.version }} |