-
-
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.
ci: update release publish to discord action
- Loading branch information
1 parent
9885d13
commit 63da7d3
Showing
2 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
name: Publish Release To Discord | ||
on: | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
publish-release-to-discord: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout private action repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ssilve1989/github-releases-to-discord-action | ||
token: ${{ secrets.DISCORD_RELEASES_TOKEN }} | ||
- uses: pnpm/[email protected] | ||
- uses: actions/setup-node@v4 | ||
with: | ||
# File containing the version Spec of the version to use. Examples: .nvmrc, .node-version, .tool-versions. | ||
# If node-version and node-version-file are both provided the action will use version from node-version. | ||
node-version-file: ".nvmrc" | ||
|
||
# Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm. | ||
# Package manager should be pre-installed | ||
# Default: '' | ||
cache: "pnpm" | ||
- run: pnpm install | ||
- run: pnpm build | ||
- name: Run Publish Release | ||
uses: ./ | ||
with: | ||
webhook-url: ${{ secrets.DISCORD_RELEASES_WEBHOOK_URL }} |