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 github release | ||
permissions: | ||
contents: write | ||
packages: write | ||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.* | ||
jobs: | ||
verify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected],[email protected],just@1,hurl@4,[email protected] | ||
- run: just verify | ||
create-windows-installer: | ||
needs: verify | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just@1 | ||
- uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '3.1.x' | ||
- name: install wix | ||
run: dotnet tool install --global wix | ||
- run: wix --version | ||
- run: cargo install cargo-wix | ||
- run: cargo wix | ||
- name: Step 3 - Use the Upload Artifact GitHub Action | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: assets-for-download | ||
path: downloads | ||
create-release-and-docker-images: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just@1 | ||
- uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
- name: create docker images | ||
working-directory: ./distributions | ||
run: | | ||
just build-docker-image ${{ github.ref_name }} | ||
just push-docker | ||
- uses: taiki-e/create-gh-release-action@v1 | ||
with: | ||
changelog: CHANGELOG.md | ||
token: ${{ github.token }} |