mirror of
https://github.com/yude-jp/yude.jp
synced 2025-12-17 05:04:15 +09:00
Initial commit
This commit is contained in:
19
.github/workflows/cloudflare-workers.yml
vendored
Normal file
19
.github/workflows/cloudflare-workers.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Deploy to Cloudflare Workers
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
deploy-cf:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Publish
|
||||
uses: cloudflare/wrangler-action@1.3.0
|
||||
env:
|
||||
USER: root
|
||||
with:
|
||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||
workingDirectory: './'
|
||||
28
.github/workflows/firebase.yml
vendored
Normal file
28
.github/workflows/firebase.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Firebase Hosting
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@master
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
deploy:
|
||||
name: Deploy
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@master
|
||||
- name: Deploy to Firebase
|
||||
uses: w9jds/firebase-action@master
|
||||
with:
|
||||
args: deploy --only hosting
|
||||
env:
|
||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||
Reference in New Issue
Block a user