Skip to content

Release

Release #202

Workflow file for this run

name: Release
on:
push:
branches:
- main
tags:
- "v*"
jobs:
upload-launcher:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: coursier/[email protected]
with:
jvm: 8
- run: ./mill -i ci.uploadLaunchers
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
env:
UPLOAD_GH_TOKEN: ${{ secrets.GH_TOKEN }}
update-docker-images:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'almond-sh/almond'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: coursier/[email protected]
with:
jvm: 8
- run: scripts/update-docker-images.sh
shell: bash
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
update-website:
needs: [upload-launcher, update-docker-images]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: coursier/[email protected]
with:
jvm: 17
apps: cs
- run: |
./mill docs.generate --npm-install --yarn-run-build
scripts/website0/versioned-docs.sh --update
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
WEBSITE_DIR: docs/website
VERSIONED_DOCS_REPO: almond-sh/versioned-docs
- run: |
scripts/website0/versioned-docs.sh
./mill docs.generate --npm-install --yarn-run-build --relativize
scripts/website0/push-website.sh
shell: bash
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
WEBSITE_DIR: docs/website
REPO: almond-sh/almond
VERSIONED_DOCS_REPO: almond-sh/versioned-docs