mirror of
https://github.com/AdrianKuta/Tree-Data-Structure.git
synced 2025-04-19 23:19:03 +02:00
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:
parent
dd773e3b16
commit
8a2710339a
6
.github/workflows/publishRelease.yml
vendored
6
.github/workflows/publishRelease.yml
vendored
@ -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
|
||||
|
13
.github/workflows/publishSnapshot.yml
vendored
13
.github/workflows/publishSnapshot.yml
vendored
@ -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:
|
||||
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -1,6 +1,9 @@
|
||||
name: Test
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches-ignore: [master]
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
Loading…
x
Reference in New Issue
Block a user