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 # We'll run this workflow when a new GitHub release is created
types: [released] types: [released]
jobs: jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
publish: publish:
name: Publish Production name: Publish Production
environment: production
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out code - name: Check out code

View File

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

View File

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