Skip to content

Release v1.3.0

Release v1.3.0 #23

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
ext: ''
target: x86_64-unknown-linux-gnu
- os: windows-latest
ext: '.exe'
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt update && sudo apt install libwayland-dev
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Rename executable
run: |
mkdir -p bin
mv target/${{ matrix.target }}/release/customizer${{ matrix.ext }} bin/concavum-customizer-${{ github.ref_name }}-${{ matrix.target }}${{ matrix.ext }}
- name: Upload executable as artifact
uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.target }}
path: bin/
release:
name: Release
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: binary-*
merge-multiple: true
- name: Create release
uses: docker://antonyurchenko/git-release:v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: concavum-customizer-v*
deploy-to-pages:
name: Deploy to GitHub pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install wasm-pack
uses: jetli/[email protected]
- name: Build using wasm-pack
run: wasm-pack build customizer_wasm --target no-modules --out-dir ../web/pkg --no-typescript --no-pack
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: web
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4