publish #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
release: | |
types: [published] | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "✏️ Generate release changelog" | |
uses: heinrichreimer/action-github-changelog-generator@v2.3 | |
with: | |
base: CHANGELOG.md | |
token: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# windows-latest, macos-latest | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Configure Node caching | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install poetry | |
working-directory: . | |
run: pipx install poetry | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
working-directory: . | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Set up and create virtual environment | |
working-directory: . | |
run: | | |
poetry config --list | |
poetry config virtualenvs.create true --local | |
poetry config virtualenvs.in-project true --local | |
poetry config --list | |
- name: Install dependencies | |
working-directory: . | |
run: | | |
poetry install --no-interaction | |
- name: Install Node dependencies | |
run: npm install | |
- name: Build distribution | |
env: | |
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
CSC_LINK: ${{ secrets.CSC_LINK }} | |
APPLEID: ${{ secrets.APPLEID }} | |
APPLEIDPASS: ${{ secrets.APPLEIDPASS }} | |
run: npm run dist | |
- name: Upload AppImage | |
uses: actions/upload-artifact@v4 | |
if: startsWith(matrix.os, 'ubuntu') | |
with: | |
name: DedupliFHIR-${{ github.ref_name }}.AppImage | |
path: | | |
./frontend/dist/DedupliFHIR*.AppImage | |
- name: Upload Snap | |
uses: actions/upload-artifact@v4 | |
if: startsWith(matrix.os, 'ubuntu') | |
with: | |
name: DedupliFHIR-${{ github.ref_name }}.snap | |
path: | | |
./frontend/dist/deduplifhir-app*.snap | |
release: | |
name: Release ${{ github.ref_name }} | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download DedupliFHIR-${{ github.ref_name }}.AppImage artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: DedupliFHIR-${{ github.ref_name }}.AppImage | |
- name: Download DedupliFHIR-${{ github.ref_name }}.snap artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: DedupliFHIR-${{ github.ref_name }}.snap | |
- name: Upload DedupliFHIR-${{ github.ref_name }}.AppImage to release | |
uses: svenstaro/upload-release-action@2.5.0 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref_name }} | |
file: DedupliFHIR-${{ github.ref_name }}.AppImage | |
overwrite: false | |
- name: Upload DedupliFHIR-${{ github.ref_name }}.snap to release | |
uses: svenstaro/upload-release-action@2.5.0 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref_name }} | |
file: DedupliFHIR-${{ github.ref_name }}.snap | |
overwrite: false |