Skip to content

Merge pull request #13 from ethho/dev-385-debug #1

Merge pull request #13 from ethho/dev-385-debug

Merge pull request #13 from ethho/dev-385-debug #1

Workflow file for this run

name: Create Versioned Release
on:
push:
branches:
- master
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
export DOCKER_TAG="${{ github.ref_name }}"
docker compose build builder
mkdir -p pam-oidc/bin
docker compose cp builder:/tmp/pam-oauth2/libpam_oidc_gnu.so ./pam-oidc/bin/
docker compose cp builder:/tmp/pam-oauth2/libpam_oidc_musl.so ./pam-oidc/bin/
- name: Touch Changelog
if: startsWith(github.ref, 'refs/tags/')
run: touch "docs/CHANGELOG-${{ github.ref_name }}.md"
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./pam-oidc/bin/libpam_oidc_gnu.so
./pam-oidc/bin/libpam_oidc_musl.so
body_path: docs/CHANGELOG-${{ github.ref_name }}.md