Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Migrate to GitHub Actions #209

Merged
merged 4 commits into from Nov 3, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/deploy.yml
@@ -0,0 +1,44 @@
name: Deploy Site

on:
push:
branches: [ hugo ]
pull_request:
branches: [ hugo ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: |
echo '========== Installing gulp & dependencies =========='
sudo apt-get install graphicsmagick
wget -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.deb
sudo dpkg -i hugo.deb
yarn install
# Install dependencies one-by-one to avoid race-conditions
pushd ./scripts/shared-hugo-scripts/wiki/ && yarn && popd
pushd ./scripts/shared-hugo-scripts/compatdb/ && yarn && popd
hugo version
- name: Build
env:
GITHUB_WIKI_URL: 'https://github.com/yuzu-emu/yuzu-games-wiki.wiki.git'
TENANT: 'yuzu'
run: |
echo '========== Starting gulp deploy task =========='
yarn run build
- name: Deploy
if: ${{ ! github.base_ref }}
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: master
FOLDER: build
CLEAN: true
SINGLE_COMMIT: true
2 changes: 1 addition & 1 deletion scripts/shared-hugo-scripts