Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit daa22de

Browse files
authored
ci: split build and deploy (#7)
* ci: split build and deploy * added release please * ci * dropped lint
1 parent 39764d0 commit daa22de

File tree

7 files changed

+58
-14
lines changed

7 files changed

+58
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,25 @@ concurrency:
1717
cancel-in-progress: false
1818

1919
jobs:
20+
build:
21+
runs-on: ubuntu-22.04
22+
container: ghcr.io/miracum/ig-build-tools:v2.1.6@sha256:26bc1eaf0a259e8c16d0eeeb8622c7aecaa45d41e39f158696f9aec90b142596
23+
steps:
24+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
25+
- name: build ig
26+
working-directory: PseudonymizationIG/
27+
run: |
28+
java -jar /usr/local/bin/publisher.jar -ig ig.ini
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
31+
with:
32+
path: "PseudonymizationIG/output"
33+
2034
deploy:
2135
runs-on: ubuntu-22.04
36+
if: ${{ github.event_name != 'pull_request' }}
37+
needs:
38+
- build
2239
environment:
2340
name: github-pages
2441
url: ${{ steps.deployment.outputs.page_url }}
@@ -28,18 +45,8 @@ jobs:
2845
id-token: write
2946
container: ghcr.io/miracum/ig-build-tools:v2.1.6@sha256:26bc1eaf0a259e8c16d0eeeb8622c7aecaa45d41e39f158696f9aec90b142596
3047
steps:
31-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3248
- name: Setup Pages
3349
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
34-
- name: build ig
35-
working-directory: PseudonymizationIG/
36-
run: |
37-
java -jar /usr/local/bin/publisher.jar -ig ig.ini
38-
- name: Upload artifact
39-
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
40-
with:
41-
path: "PseudonymizationIG/output"
4250
- name: Deploy to GitHub Pages
4351
id: deployment
4452
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
45-
if: ${{ github.event_name != 'pull_request' }}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
8+
permissions: read-all
9+
10+
jobs:
11+
release-please:
12+
runs-on: ubuntu-22.04
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
steps:
17+
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
release-type: simple
21+
config-file: release-please-config.json
22+
manifest-file: .release-please-manifest.json

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0"
3+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
5-
]
3+
"extends": ["config:recommended"]
64
}

PseudonymizationIG/sushi-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: PseudonymizationIG
99
# title: Example Title
1010
# description: Example Implementation Guide for getting started with SUSHI
1111
status: draft # draft | active | retired | unknown
12-
version: 0.1.0
12+
version: 0.1.0 # x-release-please-version
1313
fhirVersion: 4.0.1 # https://www.hl7.org/fhir/valueset-FHIR-version.html
1414
copyrightYear: 2024+
1515
releaseLabel: ci-build

release-please-config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"bump-minor-pre-major": true,
4+
"bump-patch-for-minor-pre-major": true,
5+
"include-v-in-tag": true,
6+
"separate-pull-requests": true,
7+
"extra-label": "release-please",
8+
"packages": {
9+
".": {
10+
"release-type": "simple"
11+
}
12+
}
13+
}

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

0 commit comments

Comments
 (0)