move release to checks
This commit is contained in:
parent
a28662b9bd
commit
1bd3c1f382
3 changed files with 15 additions and 22 deletions
|
|
@ -11,3 +11,17 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://${{ secrets.FORGE_TOKEN }}@code.quickbasic.org/sigitex/regime/actions/checks@main
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: checks
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: https://${{ secrets.FORGE_TOKEN }}@code.quickbasic.org/sigitex/regime/actions/release@main
|
||||
with:
|
||||
gitea-token: ${{ secrets.FORGE_TOKEN }}
|
||||
gitea-url: https://code.quickbasic.org
|
||||
npm-token: ${{ secrets.NPM_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export default defineConfig({
|
|||
"prefer-for-of": "off",
|
||||
"switch-case-braces": "off",
|
||||
"require-module-specifiers": "off",
|
||||
"no-namespace": "off",
|
||||
"typescript/no-namespace": "off",
|
||||
},
|
||||
ignorePatterns: ["**/*.gen.ts"],
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Checks"]
|
||||
branches: [main]
|
||||
types: [completed]
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: https://${{ secrets.FORGE_TOKEN }}@code.quickbasic.org/sigitex/regime/actions/release@main
|
||||
with:
|
||||
gitea-token: ${{ secrets.FORGE_TOKEN }}
|
||||
gitea-url: https://code.quickbasic.org
|
||||
npm-token: ${{ secrets.NPM_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue