docs-builder 0.3.0 #6
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: Pre-release main branch | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
containers: | |
runs-on: ubuntu-latest | |
outputs: | |
full-version: ${{ steps.bootstrap.outputs.full-version }} | |
major-version: ${{ steps.bootstrap.outputs.major-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Bootstrap Action Workspace | |
id: bootstrap | |
uses: ./.github/actions/bootstrap | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Containers | |
run: ./build.sh publishcontainers | |
release: | |
needs: [containers] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
outputs: | |
full-version: ${{ steps.bootstrap.outputs.full-version }} | |
major-version: ${{ steps.bootstrap.outputs.major-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Bootstrap Action Workspace | |
id: bootstrap | |
uses: ./.github/actions/bootstrap | |
- name: Publish Binaries | |
run: ./build.sh publishzip | |
shell: bash | |
- name: Attach Distribution to release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release upload ${{ github.ref_name }} .artifacts/publish/docs-builder/release/*.zip | |
shell: bash |