forked from paritytech/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1009 Bytes
/
deploy-page.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Generate metrics
on:
push:
branches: ["main"]
workflow_dispatch:
inputs:
org:
description: 'Organization'
type: string
required: false
default: "polkadot-fellows"
repo:
description: 'Repository'
type: string
required: false
default: "runtimes"
permissions:
pages: write
id-token: write
jobs:
get_metrics:
runs-on: ubuntu-latest
name: Get repository metrics
steps:
- uses: paritytech-stg/metrics@main
name: Fetch metrics
id: metric
with:
GITHUB_TOKEN: ${{ github.token }}
owner: ${{ github.event.inputs.org }}
repo: ${{ github.event.inputs.repo }}
- name: Setup Pages
uses: actions/[email protected]
- name: Upload artifact
uses: actions/[email protected]
with:
path: ./
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]