forked from Qbox-project/qbx_vehiclekeys
-
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.
🔄 synced local '.github/' with remote 'repo-template/.github/'
- Loading branch information
1 parent
156353a
commit 3bf067e
Showing
2 changed files
with
29 additions
and
3 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,19 @@ | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
github-releases-to-discord: | ||
name: Discord Releases Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
- name: Github Releases To Discord | ||
uses: SethCohen/[email protected] | ||
with: | ||
webhook_url: ${{ secrets.WEBHOOK_URL }} | ||
color: "15852866" | ||
username: ${{ github.event.repository.name }} | ||
avatar_url: "https://i.imgur.com/Eh1yiLI.png" | ||
footer_timestamp: true |
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 |
---|---|---|
|
@@ -18,16 +18,23 @@ jobs: | |
|
||
- 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: Get App Token | ||
uses: actions/[email protected] | ||
id: generate_token | ||
with: | ||
app-id: ${{ secrets.APP_ID }} | ||
private-key: ${{ secrets.PRIVATE_KEY }} | ||
|
||
- name: Create Release | ||
uses: 'marvinpinto/action-automatic-releases@latest' | ||
with: | ||
title: ${{ github.ref_name }} | ||
repo_token: '${{ secrets.GITHUB_TOKEN }}' | ||
repo_token: '${{ steps.generate_token.outputs.token }}' | ||
prerelease: false | ||
files: ${{ github.event.repository.name }}.zip |