Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation publishing from GH workflow #200

Open
ennru opened this issue Dec 20, 2022 · 0 comments
Open

Documentation publishing from GH workflow #200

ennru opened this issue Dec 20, 2022 · 0 comments

Comments

@ennru
Copy link
Contributor

ennru commented Dec 20, 2022

The release workflow publishes to Sonatype and is intended to publish the latest documentation, but updating GH pages fails for a broken git user setup, which I didn't have time to figure out.

documentation:
name: Release Documentation
if: github.repository == 'sbt/sbt-site'
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0
- name: Set up JDK 11
uses: coursier/setup-action@v1.3.0
with:
jvm: temurin:1.11.0.17
- name: sbt ghpages
run: |-
git config --global user.name "sbt-site bot"
git config --global user.email "sbt-site@scala-sbt.org"
sbt ghpagesPushSite
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant