-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.28 KB
/
deploy.yaml
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
# SPDX-FileCopyrightText: Copyright © 2021 snek.at
# SPDX-License-Identifier: EUPL-1.2
#
# Use of this source code is governed by an EUPL-1.2 license that can be found
# in the LICENSE file at https://snek.at/license
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#name
name: Deploy
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#on
on:
# Runs on pushes targeting the default branch
push:
branches: ["main", "dev"]
# Allows you to run this workflow from another workflow
workflow_call:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobs
jobs:
deploy:
uses: atsnek/jaen/.github/workflows/jaen-deploy.yaml@main
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
with:
CLOUDFLARE_PROJECT_NAME: "cronit"
secrets:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}