Skip to content

Commit

Permalink
Migrate to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Apr 5, 2024
1 parent 3080b71 commit fc004a9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 43 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update Site

on:
push:
branches: [master, actions-test]

jobs:
update-site:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: [email protected]

- name: Setup tools
run: sudo apt-get install -y asciidoc


- name: Generate XML from Asciidoc
run: just generate
# Other steps that change files in the repository

# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v5
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
generate:
rm -rf book/generated-xml
./book/tools/generate.sh
./book/tools/validate.hs

0 comments on commit fc004a9

Please sign in to comment.