ci: Replace Ubuntu 18.04 by Ubuntu 22.04 #91
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
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
installer-check: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache the spacemacs repository folder | |
uses: actions/[email protected] | |
with: | |
path: ~/.emacs.d | |
key: saved-emacs-d-${{ matrix.os }} | |
- name: Create a placeholder folder for org-roam | |
run: mkdir ~/org/home/roam -p | |
- name: Install everything needed for the spacemacs config | |
run: ./installer.sh | |
shell: bash | |
- name: Copy the generated index.html to the checked out repo path | |
run: | | |
mkdir ~/work/dot-spacemacs/dot-spacemacs/public | |
cp ~/.spacemacs.d/docs/index.html ~/work/dot-spacemacs/dot-spacemacs/public | |
- name: GitHub Pages | |
if: matrix.os == 'ubuntu-18.04' && success() | |
uses: crazy-max/[email protected] | |
with: | |
target_branch: gh-pages | |
build_dir: public | |
jekyll: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |