Skip to content

Commit

Permalink
Modernize gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 3, 2022
1 parent 9095bd2 commit cf7123e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
name: Documentation

permissions:
contents: write

on:
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab:
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages:
permissions:
contents: write
contents: read
pages: write
id-token: write

# Allow one concurrent deployment:
concurrency:
group: "pages"
cancel-in-progress: true

env:
CONSOLE_OUTPUT: XTerm
BUNDLE_WITH: maintenance

jobs:
deploy:
generate:
runs-on: ubuntu-latest

steps:
Expand All @@ -30,12 +38,24 @@ jobs:
- name: Installing packages
run: sudo apt-get install wget

- name: Prepare GitHub Pages
run: bundle exec bake github:pages:prepare --directory docs

- name: Generate documentation
timeout-minutes: 5
run: bundle exec bake utopia:project:static --force no

- name: Deploy GitHub Pages
run: bundle exec bake github:pages:commit --directory docs
- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs

deploy:
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}

needs: generate
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion lib/sus/output/progress.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2022, by Samuel Williams.
# Copyright, 2021-2022, by Samuel Williams.

require_relative 'bar'
require_relative 'status'
Expand Down

0 comments on commit cf7123e

Please sign in to comment.