Skip to content

v0.6.4

v0.6.4 #46

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
deb:
name: Debian/Ubuntu (deb)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build deb file
run: |
docker run --rm -v $(pwd):/source ghcr.io/edomora97/task-maker-rust-release-linux
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "target/debian/*.deb"
## For now do not build the docker container for the server/worker: it requires some fixes because the workers
## now spawn a single instance instead of as many as cores. Moreover, the server and worker commands changed.
# - name: Publish docker container
# run: |
# echo ${DOCKER_PASSWORD} | docker login --username edomora97 --password-stdin
# export TM_VERSION=$(grep version Cargo.toml | head -n 1 | cut -d'"' -f 2)
# cd tools/docker
# docker build --build-arg TM_VERSION=$TM_VERSION -t edomora97/task-maker-rust:latest -t edomora97/task-maker-rust:$TM_VERSION .
# docker push edomora97/task-maker-rust:$TM_VERSION
# docker push edomora97/task-maker-rust:latest
# env:
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
aur:
name: AUR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build PKGBUILD
working-directory: tools/aur/task-maker-rust
run: ./gen.sh > ../../../PKGBUILD
- name: Publish PKGBUILD
uses: KSXGitHub/[email protected]
with:
pkgname: task-maker-rust
pkgbuild: ./PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
ppa:
name: Publish PPA
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trigger PPA build
env:
GH_TOKEN: ${{ secrets.PAT_PPA_ACTION_TRIGGER }}
run: |
gh workflow run -R dp1/task-maker-rust-ppa --ref master check-for-release.yml