14 improve GitHub actions (#15)

* 14: Test CI

* 14: Test CI

* 14: Test CI

* 14: Test CI

* 14: Test CI

* 14: Test CI

* 14: Test CI
This commit is contained in:
Adrian Kuta 2022-12-15 16:28:33 +01:00 committed by GitHub
parent dd773e3b16
commit 8a2710339a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 7 deletions

View File

@ -5,9 +5,15 @@ on:
# We'll run this workflow when a new GitHub release is created
types: [released]
jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
publish:
name: Publish Production
environment: production
runs-on: ubuntu-latest
steps:
- name: Check out code

View File

@ -1,15 +1,16 @@
name: Publish Snapshot
on:
workflow_run:
workflows: [Test]
branches-ignore: [main]
types:
- completed
push:
branches: [master, '14-**']
jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: test
name: Publish Snapshot
runs-on: ubuntu-latest
steps:

View File

@ -1,6 +1,9 @@
name: Test
on: [push]
on:
push:
branches-ignore: [master]
workflow_call:
jobs:
build: