Skip to content

Minor team fix

Minor team fix #12

name: website-screenshot
on:
push:
branches:
- "*"
pull_request:
branches:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Screenshot website
uses: swinton/[email protected]
with:
source: https://raidionics.github.io/
destination: screenshot.png
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
continue-on-error: false
with:
github_token: ${{secrets.CI_TOKEN}}
workflow: website-screenshot.yml
workflow_conclusion: ""
branch: master
event: push
name: screenshot
repo: raidionics/raidionics.github.io
- name: Debug
run: ls -haltr
- name: Update screenshot in release
uses: svenstaro/upload-release-action@v2
with:
repo_name: raidionics/raidionics.github.io
repo_token: ${{ secrets.CI_TOKEN }}
file: ${{github.workspace}}/screenshot.png
asset_name: screenshot.png
file_glob: true
tag: screenshot-website
overwrite: true