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

Commit

Permalink
ci: split build and deploy (#7)
Browse files Browse the repository at this point in the history
* ci: split build and deploy

* added release please

* ci

* dropped lint
  • Loading branch information
chgl authored Oct 9, 2024
1 parent 39764d0 commit daa22de
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 14 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,25 @@ concurrency:
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-22.04
container: ghcr.io/miracum/ig-build-tools:v2.1.6@sha256:26bc1eaf0a259e8c16d0eeeb8622c7aecaa45d41e39f158696f9aec90b142596
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: build ig
working-directory: PseudonymizationIG/
run: |
java -jar /usr/local/bin/publisher.jar -ig ig.ini
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: "PseudonymizationIG/output"

deploy:
runs-on: ubuntu-22.04
if: ${{ github.event_name != 'pull_request' }}
needs:
- build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -28,18 +45,8 @@ jobs:
id-token: write
container: ghcr.io/miracum/ig-build-tools:v2.1.6@sha256:26bc1eaf0a259e8c16d0eeeb8622c7aecaa45d41e39f158696f9aec90b142596
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
- name: build ig
working-directory: PseudonymizationIG/
run: |
java -jar /usr/local/bin/publisher.jar -ig ig.ini
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: "PseudonymizationIG/output"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
if: ${{ github.event_name != 'pull_request' }}
22 changes: 22 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches:
- master

name: release-please

permissions: read-all

jobs:
release-please:
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0"
}
4 changes: 1 addition & 3 deletions renovate.json → .renovaterc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
"extends": ["config:recommended"]
}
2 changes: 1 addition & 1 deletion PseudonymizationIG/sushi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: PseudonymizationIG
# title: Example Title
# description: Example Implementation Guide for getting started with SUSHI
status: draft # draft | active | retired | unknown
version: 0.1.0
version: 0.1.0 # x-release-please-version
fhirVersion: 4.0.1 # https://www.hl7.org/fhir/valueset-FHIR-version.html
copyrightYear: 2024+
releaseLabel: ci-build
Expand Down
13 changes: 13 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"include-v-in-tag": true,
"separate-pull-requests": true,
"extra-label": "release-please",
"packages": {
".": {
"release-type": "simple"
}
}
}
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0

0 comments on commit daa22de

Please sign in to comment.