-
Notifications
You must be signed in to change notification settings - Fork 29
66 lines (58 loc) · 1.52 KB
/
deploy.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "Deploy"
on:
push:
branches: [ "data" ]
# Allows to run this workflow manually.
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Setup Deno"
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: "Build with Deno"
run: |
./build.sh
- name: "Deploy README"
uses: JamesIves/[email protected]
with:
branch: rendered
folder: build
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
name: pages
path: ./build
retention-days: 1
if-no-files-found: error
deploy:
needs: build
runs-on: ubuntu-latest
# Deploy to the pages environment
environment:
name: pages
url: "https://optifine.alternatives.lambdaurora.dev/"
permissions:
contents: read
deployments: write
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: pages
path: dist
- name: "Publish to Cloudflare Pages"
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: optifine-alternatives
directory: dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}