Skip to content

Add GitHub Action to update example page #52

@christian-bromann

Description

@christian-bromann

Currently it doesn't seem that the example page is updated automatically for every release. With GitHub Actions this can be achieved easily. Please have a look at this example:

name: Publish Example Site

on:
  push:
    tags:
      - v*

env:
  GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

jobs:
  deploy:
    runs-on: ubuntu-18.04
    steps:
      - name: Checkout repo
        uses: actions/checkout@v2
      - name: Setup Node
        uses: actions/setup-node@v1
        with:
          node-version: '12.x'
      - run: npm install
      - run: npm run build
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          personal_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ...
          publish_branch: ...
          user_name: 'OSS Sauce Bot'
          user_email: '[email protected]'
          commit_message: ${{ github.event.head_commit.message }}

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions