container must be running to docker compose cp #3
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: 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 }}" | |
touch .env | |
mkdir -p pam-oidc/bin | |
docker compose up --build builder | |
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/ | |
docker compose down | |
- 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 |