-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added nightly release gha with version bump
- Loading branch information
Showing
3 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
.github/workflows/_release-with-built-site-as-artifact.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Release tag with _site.tar.gz artefact | ||
on: | ||
workflow_call: | ||
inputs: | ||
tag: | ||
description: Github Tag to create | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
bundle: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 #v4.1.2 | ||
- uses: ruby/setup-ruby@v1 # https://github.com/ruby/setup-ruby?tab=readme-ov-file#versioning | ||
with: | ||
ruby-version: "3.3" # Not needed with a .ruby-version file | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- run: gem install jekyll bundler | ||
- run: bundle exec jekyll build | ||
- run: tar -cvvzf _site.tar.gz ./_site | ||
- name: Create release | ||
run: gh release create ${{ inputs.tag }} _site.tar.gz | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Nighly release of main branch with bumped tag | ||
|
||
on: | ||
schedule: | ||
- cron: "0 1 * * *" | ||
|
||
jobs: | ||
bump-version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tag: ${{ steps.bumped-tag.outputs.tag }} | ||
steps: | ||
- id: bumped-tag | ||
run: | | ||
VERSION=`git describe --tags --abbrev=0 | awk -F. '{OFS="."; $NF+=1; print $0}'`; \ | ||
echo "tag=${VERSION}" >> $GITHUB_OUTPUT | ||
release: | ||
uses: ./.github/workflows/_release-with-built-site-as-artifact.yml | ||
needs: bump-version | ||
with: | ||
tag: ${{needs.bump-version.outputs.tag}} |