diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..ade7908 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,35 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: actions/checkout@v2 + + - name: "Setup NodeJS" + uses: actions/setup-node@v1 + with: + node-version: '12.x' + + - name: "Install NPM dependencies" + run: npm install + + - name: "Install gridsome CLI" + run: "npm install --global @gridsome/cli" + + - name: "Build" + run: npm run build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_dir: ./dist + publish_branch: master + external_repository: Ryujinx/ryujinx.github.io diff --git a/gridsome.config.js b/gridsome.config.js index 6de907f..b94102e 100644 --- a/gridsome.config.js +++ b/gridsome.config.js @@ -1,6 +1,6 @@ module.exports = { siteName: 'Ryujinx', - siteUrl: 'https://www.ryujinx.org', + siteUrl: 'https://ryujinx.org', titleTemplate: 'Ryujinx - %s', plugins: [] }