Skip to content

Commit

Permalink
cleaning up actions
Browse files Browse the repository at this point in the history
  • Loading branch information
procrastinatio committed Jun 10, 2024
1 parent 363a4f1 commit 4a3829a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build PDF with Pandoc
name: build


on:
workflow_dispatch:
workflow_call:
push:
branches:
- master
Expand All @@ -13,6 +13,7 @@ on:
- develop
- 'releases/**'


jobs:
build-markdown:
name: Generating Markdown files
Expand All @@ -25,7 +26,8 @@ jobs:
- name: Install Pandoc
run: sudo apt-get install -y pandoc
- uses: actions/checkout@v4
- name: Checkout coded_domains
uses: actions/checkout@v4
- name: Install miniconda
uses: conda-incubator/setup-miniconda@v3
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ name: Upload to S3
on:
workflow_dispatch:
push:
branches:
- master
tags: # trigger the deploy job on tag creation
- *

jobs:
build:
uses: ./.github/workflows/build.yml # use the callable build job to run build
deploy:
runs-on: ubuntu-latest

# runs-on: ubuntu-latest
needs: [build] # require build to pass before deploy runs
steps:
- uses: actions/checkout@master

- name: Upload folder to bucket
uses: a-sync/s3-uploader@master
with:
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@ on:
tags:
- "v*.*.*"


# cat .github/workflows/deploy.yml
name: deploy
on:
push:
tags: # trigger the deploy job on tag creation
- *
jobs:

deploy:
name: deploy
needs: [tests] # require tests to pass before deploy runs

jobs:
build:
uses: ./.github/workflows/build.yml # use the callable build job to run build
release:
runs-on: ubuntu-latest
needs: [build] # require build to pass before deploy runs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: echo ${{ github.sha }} > Release.txt
- name: Test
Expand All @@ -25,3 +39,6 @@ jobs:
Release.txt
output/datamodel_de.pdf
output/datamodel_fr.pdf
output/datamodel_de.docx
output/datamodel_fr.docx
output/ER-GCOVER.svg

0 comments on commit 4a3829a

Please sign in to comment.