Skip to content

rollback scalafmt

rollback scalafmt #55

Workflow file for this run

name: release
on:
push:
tags:
- '*'
jobs:
maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 20
- uses: coursier/cache-action@v6
- name: gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.SONATYPE_GPG_SECRET }}
- name: test
run: |
./mill sclin.checkFormat
./mill sclin.test.checkFormat
./mill sclin.test
- name: mvn release
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_GPG_PASSWORD: ${{ secrets.SONATYPE_GPG_PASSWORD }}
run: |
./mill mill.scalalib.PublishModule/publishAll \
__.publishArtifacts \
$SONATYPE_USERNAME:$SONATYPE_PASSWORD \
--gpgArgs --passphrase=$SONATYPE_GPG_PASSWORD,--no-tty,--pinentry-mode,loopback,--batch,--yes,-a,-b \
--sonatypeUri https://s01.oss.sonatype.org/service/local \
--sonatypeSnapshotUri https://s01.oss.sonatype.org/content/repositories/snapshots \
--awaitTimeout 600000 \
--release true
github_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 20
- uses: coursier/cache-action@v6
- name: test
run: |
./mill sclin.reformat
./mill sclin.test.reformat
./mill sclin.test
- name: build
run: ./mill sclin.assembly
- name: gh release
uses: svenstaro/upload-release-action@v2
with:
file: out/sclin/assembly.dest/out.jar
asset_name: sclin
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v3
with:
context: .
push: true
tags: molarmanful/sclin:latest
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.GH_PAT }}