docs-builder 0.30.2 #41
Workflow file for this run
This file contains hidden or 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-lambda: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Amazon Linux 2023 build | |
run: | | |
docker build . -t publish-links-index:latest -f src/infra/docs-lambda-index-publisher/lambda.DockerFile | |
- name: Get bootstrap binary | |
run: | | |
docker cp $(docker create --name tc publish-links-index:latest):/app/.artifacts/publish ./.artifacts && docker rm tc | |
# TODO publish to AWS | |
- name: Attach Distribution to release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release upload ${{ github.event.release.tag_name }} .artifacts/docs-lambda-index-publisher/release_linux-x64/bootstrap | |
shell: bash | |
release: | |
needs: [containers] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest, macos-latest-large ] | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
attestations: 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: Generate artifact attestation | |
uses: actions/attest-build-provenance@v2 | |
with: | |
subject-path: | | |
.artifacts/publish/docs-builder/release/*.zip | |
.artifacts/publish/docs-assembler/release/*.zip | |
- name: Attach Distribution to release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload ${{ github.event.release.tag_name }} .artifacts/publish/docs-builder/release/*.zip | |
gh release upload ${{ github.event.release.tag_name }} .artifacts/publish/docs-assembler/release/*.zip | |
shell: bash |