mirror of
https://github.com/Macro-Deck-App/Macro-Deck.git
synced 2026-05-07 05:59:22 +08:00
Update workflows
This commit is contained in:
45
.github/workflows/create-release.yml
vendored
45
.github/workflows/create-release.yml
vendored
@@ -14,11 +14,6 @@ on:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Execute Tests
|
||||
uses: ./.github/workflows/tests.yml
|
||||
secrets: inherit
|
||||
|
||||
get-version:
|
||||
name: "Get Version"
|
||||
runs-on: ubuntu-latest
|
||||
@@ -39,6 +34,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
github-token: ${{ secrets.PAT }}
|
||||
|
||||
- name: Update CSProj Version
|
||||
run: |
|
||||
@@ -49,6 +46,7 @@ jobs:
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Bump Version to ${{ needs.get-version.outputs.version }}
|
||||
github-token: ${{ secrets.PAT }}
|
||||
|
||||
release-github:
|
||||
name: "Release GitHub"
|
||||
@@ -62,39 +60,6 @@ jobs:
|
||||
uses: Macro-Deck-App/Actions/create-github-release@main
|
||||
id: create_release
|
||||
with:
|
||||
github-token: "${{secrets.GITHUB_TOKEN}}"
|
||||
github-token: "${{secrets.PAT}}"
|
||||
is-beta: ${{ needs.get-version.outputs.is-beta }}
|
||||
version: ${{ needs.get-version.outputs.version }}
|
||||
|
||||
release-windows:
|
||||
name: "Build and Push Macro Deck for Windows"
|
||||
uses: ./.github/workflows/build-push-windows.yml
|
||||
needs: [release-github, get-version]
|
||||
secrets: inherit
|
||||
with:
|
||||
version: ${{ needs.get-version.outputs.version }}
|
||||
upload-url: ${{ needs.release-github.outputs.upload-url }}
|
||||
|
||||
create-pull-request:
|
||||
name: "Create pull-request back to develop"
|
||||
if: github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
needs: [get-version, bump-version, release-windows, release-github]
|
||||
steps:
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
branch: main
|
||||
title: Bump Macro Deck version to ${{ needs.get-version.outputs.version }}
|
||||
body: Bumps the version of Macro Deck to ${{ needs.get-version.outputs.version }}
|
||||
|
||||
notify:
|
||||
name: "Notify"
|
||||
runs-on: ubuntu-latest
|
||||
needs: [get-version, release-windows]
|
||||
steps:
|
||||
- uses: Macro-Deck-App/Actions/discord-notify-release@main
|
||||
with:
|
||||
version: ${{ needs.get-version.outputs.version }}
|
||||
is-beta: ${{ needs.get-version.outputs.is-beta }}
|
||||
webhook-token: ${{ secrets.WEBHOOK_KEY }}
|
||||
version: ${{ needs.get-version.outputs.version }}
|
||||
44
.github/workflows/release-created.yml
vendored
Normal file
44
.github/workflows/release-created.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Create Release
|
||||
|
||||
on:
|
||||
release:
|
||||
published:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Execute Tests
|
||||
uses: ./.github/workflows/tests.yml
|
||||
secrets: inherit
|
||||
|
||||
release-windows:
|
||||
name: "Build and Push Macro Deck for Windows"
|
||||
uses: ./.github/workflows/build-push-windows.yml
|
||||
needs: [release-github, get-version]
|
||||
secrets: inherit
|
||||
with:
|
||||
version: ${{ needs.get-version.outputs.version }}
|
||||
upload-url: ${{ needs.release-github.outputs.upload-url }}
|
||||
|
||||
create-pull-request:
|
||||
name: "Create pull-request back to develop"
|
||||
if: github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
needs: [get-version, bump-version, release-windows, release-github]
|
||||
steps:
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
branch: main
|
||||
title: Bump Macro Deck version to ${{ needs.get-version.outputs.version }}
|
||||
body: Bumps the version of Macro Deck to ${{ needs.get-version.outputs.version }}
|
||||
|
||||
notify:
|
||||
name: "Notify"
|
||||
runs-on: ubuntu-latest
|
||||
needs: [get-version, release-windows]
|
||||
steps:
|
||||
- uses: Macro-Deck-App/Actions/discord-notify-release@main
|
||||
with:
|
||||
version: ${{ needs.get-version.outputs.version }}
|
||||
is-beta: ${{ needs.get-version.outputs.is-beta }}
|
||||
webhook-token: ${{ secrets.WEBHOOK_KEY }}
|
||||
Reference in New Issue
Block a user