Skip to content

Commit 94eda9f

Browse files
committed
ci: create manual deploy workflow
1 parent 002d14a commit 94eda9f

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/deploy.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
page:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Setup Pages
28+
uses: actions/configure-pages@v5
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: "."
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

scripts/main.js

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ function drawLines(canvas, ctx) {
5959
function drawText(canvas, ctx) {
6060
const margin = canvas.height / 20;
6161

62-
6362
const year = new Date().getFullYear();
6463
const text = ${year} NEI/AAC`;
6564
const size = window.innerWidth < 500 ? 20 : 25;

0 commit comments

Comments
 (0)