Skip to content

Commit

Permalink
chore: adapt to branch rename; more names (#190)
Browse files Browse the repository at this point in the history
* chore: adapt to branch rename
* more names in workflows
* Reflect changes in instructions
  • Loading branch information
ennru authored Dec 20, 2022
1 parent 4cd473e commit 1121fa9
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 97 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/check-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
pull_request:
push:
branches:
- develop
- master
- main
- release-*
tags-ignore: [ v.* ]
tags-ignore: ["v*"]

permissions:
contents: read
Expand Down Expand Up @@ -65,5 +63,5 @@ jobs:
# mv hugo_0.20.1_linux_amd64/hugo_0.20.1_linux_amd64 ${PWD}/bin/hugo
# chmod +x ${PWD}/bin/hugo

- name: sbt test
- name: sbt runScriptedTest
run: sbt ";^^${{ matrix.sbtCrossVersion }}; compile; runScriptedTest; makeSite"
12 changes: 9 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@ name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- develop
- main

permissions:
contents: read

jobs:
update_release_draft:
name: Update release notes draft
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Drafts your next Release notes as Pull Requests are merged
# https://github.com/release-drafter/release-drafter/releases
- uses: release-drafter/release-drafter@v5
# v5.21.1
- uses: release-drafter/release-drafter@6df64e4ba4842c203c604c1f45246c5863410adb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 changes: 25 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Release
on:
push:
branches: [main, develop]
branches:
- main
- release-*
tags: ["v*"]

permissions:
contents: read

jobs:
release:
name: Release to Sonatype
if: github.repository == 'sbt/sbt-site'
runs-on: ubuntu-22.04
steps:
Expand All @@ -32,21 +35,24 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

# documentation:
# if: github.repository == 'sbt/sbt-site'
# runs-on: ubuntu-22.04
# 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
#
# - run: sbt ghpagesPushSite
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

- run: sbt ghpagesPushSite
8 changes: 8 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Releasing sbt-site

- [Releases](https://github.com/sbt/sbt-site/releases)
- [Documentation](https://www.scala-sbt.org/sbt-site/)

## Publish a new release
- [ ] Update the [draft release](https://github.com/sbt/sbt-site/releases) with the next tag version `vX.Y.Z`, title and release description. Use the `Publish release` button, which will create the tag.
- [ ] Check that GitHub Actions release build executes successfully (GitHub Actions will start a [CI build](https://github.com/sbt/sbt-site/actions) for the new tag and publish artifacts to Maven central via Sonatype and the documentation to GitHub pages)
1 change: 0 additions & 1 deletion notes/0.8.2.markdown

This file was deleted.

1 change: 0 additions & 1 deletion notes/1.0.0.markdown

This file was deleted.

1 change: 0 additions & 1 deletion notes/1.1.0.markdown

This file was deleted.

1 change: 0 additions & 1 deletion notes/1.2.0.markdown

This file was deleted.

1 change: 0 additions & 1 deletion notes/1.2.1.markdown

This file was deleted.

1 change: 0 additions & 1 deletion notes/1.3.0.markdown

This file was deleted.

1 change: 0 additions & 1 deletion notes/1.3.1.markdown

This file was deleted.

1 change: 0 additions & 1 deletion notes/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions notes/migrate-0.8.2-to-1.0.md

This file was deleted.

Binary file removed project/travis-deploy-key.enc
Binary file not shown.
1 change: 0 additions & 1 deletion src/main/paradox/notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ See [GitHub Releases](https://github.com/sbt/sbt-site/releases)
- [1.1.0](1.1.0.md)
- [1.0.0](1.0.0.md)
- [0.8.2](0.8.2.md)
- [process](release-process.md)

@@@
59 changes: 0 additions & 59 deletions src/main/paradox/notes/release-process.md

This file was deleted.

0 comments on commit 1121fa9

Please sign in to comment.