Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Action to update example page #52

Open
christian-bromann opened this issue Aug 25, 2020 · 0 comments
Open

Add GitHub Action to update example page #52

christian-bromann opened this issue Aug 25, 2020 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@christian-bromann
Copy link
Contributor

christian-bromann commented Aug 25, 2020

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: 'oss-sauce-bot@users.noreply.github.com'
          commit_message: ${{ github.event.head_commit.message }}
@christian-bromann christian-bromann added help wanted Extra attention is needed Hacktoberfest Curated issues which are well scoped and ready to be worked on as part of Hacktoberfest labels Sep 28, 2020
@christian-bromann christian-bromann removed the Hacktoberfest Curated issues which are well scoped and ready to be worked on as part of Hacktoberfest label Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants