Skip to content

Commit

Permalink
ci: update release publish to discord action
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilve1989 committed Sep 13, 2024
1 parent 9885d13 commit 63da7d3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/github-releases-to-discord.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/publish-release-to-discord.yml
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 }}

0 comments on commit 63da7d3

Please sign in to comment.