Skip to content

Commit b5e537c

Browse files
authored
Merge pull request #4 from andreped/README
Added README + status badge + snapshot CI
2 parents b342ce3 + 9f3440f commit b5e537c

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: website-screenshot
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
17+
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
18+
19+
- name: Screenshot Website
20+
uses: swinton/[email protected]
21+
with:
22+
source: https://raidionics.github.io/
23+
destination: screenshot.png
24+
25+
- name: Update screenshot in release
26+
uses: svenstaro/upload-release-action@v2
27+
with:
28+
repo_name: raidionics/raidionics.github.io
29+
repo_token: ${{ secrets.CI_TOKEN }}
30+
file: ${{github.workspace}}/screenshot.png
31+
asset_name: screenshot.png
32+
file_glob: true
33+
tag: screenshot-website
34+
overwrite: true

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# raidionics.github.io
2+
3+
[![Website raidionics.github.io](https://img.shields.io/website-up-down-green-red/https/raidionics.github.io.svg)](https://raidionics.github.io/)
4+
5+
<img src="screenshot.png" width="100%" height="100%">
6+
7+
Automatically generated snapshot of the current state of the website (created after a successful commit and deployment).

0 commit comments

Comments
 (0)