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

ci: naive GH workflow #180

Merged
merged 10 commits into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/check-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI

on:
pull_request:
push:
branches:
- develop
- master
- main
- release-*
tags-ignore: [ v.* ]

permissions:
contents: read

jobs:
test:
name: Build and Test
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- { sbtCrossVersion: "1.1.6", jvmName: "temurin:1.8.0" }
# { jvmName: "temurin:1.11.0" }
# { jvmName: "temurin:1.17.0" }
steps:
- name: Checkout
uses: actions/checkout@v3.1.0

- name: Cache Coursier cache
uses: coursier/cache-action@v6.4.1

# - name: Install Node
# uses: actions/setup-node@v1
# with:
# node-version: v16.x

- name: Ruby caches
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-

- name: Set up JDK ${{ matrix.jvmName }}
uses: coursier/setup-action@v1.3.0
with:
jvm: ${{ matrix.jvmName }}

- name: Install Jekyll, Nanoc, Asciidoctor
run: |-
sudo gem install jekyll:3.8.4 nanoc:4.0.2 asciidoctor --no-document
# npm install -g gitbook-cli@2.3.2
# gitbook install 3.2.3

# - name: Install Hugo 0.20
# run: |-
# mkdir download
# wget https://github.com/gohugoio/hugo/releases/download/v0.20.1/hugo_0.20.1_linux-64bit.tar.gz -O download/hugo.tgz
# tar xvf download/hugo.tgz
# mkdir ${PWD}/bin
# export PATH=${PATH}:${PWD}/bin
# mv hugo_0.20.1_linux_amd64/hugo_0.20.1_linux_amd64 ${PWD}/bin/hugo
# chmod +x ${PWD}/bin/hugo

- name: sbt test
run: sbt ";^^${{ matrix.sbtCrossVersion }}; compile; runScriptedTest; makeSite"
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
This project does not use Travis anymore, see .github/workflows instead.
This file is kept only to remember how things were set up until all parts work again.

dist: xenial
jdk: openjdk8
language: scala
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# sbt-site

[![Build Status](https://travis-ci.com/sbt/sbt-site.svg)](https://travis-ci.com/sbt/sbt-site)
[![Join the chat at https://gitter.im/sbt/sbt-site](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sbt/sbt-site)
[ ![Download](https://api.bintray.com/packages/sbt/sbt-plugin-releases/sbt-site/images/download.svg) ](https://bintray.com/sbt/sbt-plugin-releases/sbt-site-imported/_latestVersion)

This sbt plugin generates project websites from static content, [Jekyll], [Sphinx], [Pamflet], [Nanoc], [GitBook], [Paradox], [Hugo], [Laika] and/or [Asciidoctor], and can optionally include generated Scaladoc. It is designed to work hand-in-hand with publishing plugins like [sbt-ghpages].

## Documentation
Expand Down
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.5")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.0")
//#sbt-ghpages
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
Expand Down
10 changes: 5 additions & 5 deletions release.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
publishMavenStyle := false

bintrayOrganization := Some("sbt")

bintrayRepository := "sbt-plugin-releases"

bintrayReleaseOnPublish in ThisBuild := false
//bintrayOrganization := Some("sbt")
//
//bintrayRepository := "sbt-plugin-releases"
//
//ThisBuild / bintrayReleaseOnPublish := false
2 changes: 2 additions & 0 deletions src/main/paradox/notes/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ frontend which includes support for GitFlow. The images below are taken from Sou

## Release

This needs to be renovated to work without Bintray, e.g. with sbt-ci-release

0. Make sure you have [BinTray](https://bintray.com/sbt) credentials for the "sbt" organization. You won't be able to
publish without them.
1. Make sure the working directory is clean and up-to-date with the remote, and the tests pass (e.g. `sbt scripted`).
Expand Down
5 changes: 3 additions & 2 deletions src/sbt-test/gitbook/can-manage-installation/test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
> makeSite
> checkContent
# 2022-12-16 ennru: Ignore in GH workflow
# > makeSite
# > checkContent
5 changes: 3 additions & 2 deletions src/sbt-test/gitbook/can-use-gitbook/test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
> makeSite
> checkContent
# 2022-12-16 ennru: Ignore in GH workflow
# > makeSite
# > checkContent
5 changes: 3 additions & 2 deletions src/sbt-test/gitbook/ignore-dot-files/test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
> makeSite
> checkContent
# 2022-12-16 ennru: Ignore in GH workflow
# > makeSite
# > checkContent
5 changes: 3 additions & 2 deletions src/sbt-test/hugo/can-use-hugo/test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
> makeSite
> checkContent
# 2022-12-16 ennru: Ignore in GH workflow
# > makeSite
# > checkContent
5 changes: 3 additions & 2 deletions src/sbt-test/jekyll/can-use-jekyll/test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
> makeSite
> checkContent
# 2022-12-16 ennru: Ignore in GH workflow
# > makeSite
# > checkContent

5 changes: 3 additions & 2 deletions src/sbt-test/site/plays-nice-with-ghpages/test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
> makeSite
> checkContent
# 2022-12-16 ennru: Ignore in GH workflow
# > makeSite
# > checkContent
5 changes: 3 additions & 2 deletions src/sbt-test/site/plays-nice-with-tut/test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
> makeSite
> checkContent
# 2022-12-16 ennru: Ignore in GH workflow
# > makeSite
# > checkContent
5 changes: 3 additions & 2 deletions src/sbt-test/sphinx/can-use-sphinx/test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
> makeSite
> checkContent
# 2022-12-16 ennru: Ignore in GH workflow
# > makeSite
# > checkContent