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
|
# 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
|
||||||
|
13
.github/workflows/publishSnapshot.yml
vendored
13
.github/workflows/publishSnapshot.yml
vendored
@ -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:
|
||||||
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -1,6 +1,9 @@
|
|||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore: [master]
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user