change loop callback signature to return an IO #599
Workflow file for this run
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: master | |
on: | |
push: | |
branches: [master] | |
tags: ["*"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: 'pityka/base-ubuntu-libtorch-sbt:torch20' | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
steps: | |
- name: install git | |
run: apt-get update && apt-get install -y git && git version | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: ls -lhatr | |
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- run: git describe --tags | |
- name: Compile | |
run: sbt -mem 3000 clean +test | |
- name: Publish | |
run: sbt -mem 3000 ci-release | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
- name: website | |
run: | | |
wget -O - https://github.com/gohugoio/hugo/releases/download/v0.59.1/hugo_extended_0.59.1_Linux-64bit.tar.gz | tar xzf - hugo | |
chmod u+x hugo | |
sbt clean docs/mdoc docs/unidoc | |
cd website | |
../hugo | |
rm ../hugo | |
cd public | |
touch .nojekyll | |
- name: gh-pages-deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./website/public |