Skip to content

Merge pull request #46 from roidelapluie/mc #88

Merge pull request #46 from roidelapluie/mc

Merge pull request #46 from roidelapluie/mc #88

Workflow file for this run

name: "Deploy"
on:
push:
branches:
- 'main'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v15
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: oy-toolkit
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: make lint build
name: Lint check
- run: make build
name: Testing and building binaries
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: result/bin/*
prerelease: true
release_name: latest
tag: ${{ github.ref }}
overwrite: true
file_glob: true
body: "Latest artefacts, built from the main branch."
- name: Building packages
run: make packages
- name: Upload packages to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: result/*
prerelease: true
release_name: latest
tag: ${{ github.ref }}
overwrite: true
file_glob: true
body: "Latest artefacts, built from the main branch."
- run: make publish DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD=${{ secrets.DOCKER_PASSWORD }}
name: Building and pushing containers
- run: make publish documentation DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD=${{ secrets.DOCKER_PASSWORD }}
name: Building documentation
- name: Deploying documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./documentation