Skip to content

Commit 2bd035f

Browse files
authored
Merge pull request #5 from andreped/README
auto-website-snapshot-fix
2 parents b5e537c + 88e2d26 commit 2bd035f

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/website-screenshot.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: website-screenshot
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- "*"
67
pull_request:
7-
branches: [ master ]
8+
branches:
89
workflow_dispatch:
910

1011
jobs:
@@ -16,11 +17,26 @@ jobs:
1617
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
1718
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
1819

19-
- name: Screenshot Website
20+
- name: Screenshot website
2021
uses: swinton/[email protected]
2122
with:
2223
source: https://raidionics.github.io/
2324
destination: screenshot.png
25+
26+
- name: Download artifact
27+
uses: dawidd6/action-download-artifact@v2
28+
continue-on-error: false
29+
with:
30+
github_token: ${{secrets.CI_TOKEN}}
31+
workflow: website-screenshot.yml
32+
workflow_conclusion: ""
33+
branch: master
34+
event: push
35+
name: screenshot
36+
repo: raidionics/raidionics.github.io
37+
38+
- name: Debug
39+
run: ls -haltr
2440

2541
- name: Update screenshot in release
2642
uses: svenstaro/upload-release-action@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
[![Website raidionics.github.io](https://img.shields.io/website-up-down-green-red/https/raidionics.github.io.svg)](https://raidionics.github.io/)
44

5-
<img src="screenshot.png" width="100%" height="100%">
5+
<img src="https://github.com/raidionics/raidionics.github.io/releases/download/screenshot-website/screenshot.png" width="100%" height="100%">
66

77
Automatically generated snapshot of the current state of the website (created after a successful commit and deployment).

0 commit comments

Comments
 (0)