ci: added depoly
This commit is contained in:
parent
5449e361d5
commit
ea0e5cdd9c
3 changed files with 706 additions and 33 deletions
36
.forgejo/workflows/depoly.yml
Normal file
36
.forgejo/workflows/depoly.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
|
||||
on: ['push']
|
||||
|
||||
jobs:
|
||||
depoly:
|
||||
runs-on: linux
|
||||
container:
|
||||
image: code.lightstands.xyz/standcoded/fedora:40
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest-9 --activate
|
||||
pnpm config set store-dir /tmp/pnpm-store
|
||||
|
||||
- name: Cache Dependencies
|
||||
id: dependencies-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /tmp/pnpm-store
|
||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm i
|
||||
|
||||
- name: Depoly to Cloudflare
|
||||
uses: https://github.com/cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy --project-name=tututheapp dist
|
||||
if: "env.GITHUB_REF_NAME == 'master'"
|
||||
|
|
@ -22,7 +22,8 @@
|
|||
"vite": "^5.3.2",
|
||||
"vite-plugin-pwa": "^0.20.0",
|
||||
"vite-plugin-solid": "^2.10.2",
|
||||
"vite-plugin-solid-styled": "^0.11.1"
|
||||
"vite-plugin-solid-styled": "^0.11.1",
|
||||
"wrangler": "^3.64.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nanostores/persistent": "^0.9.1",
|
||||
|
|
700
pnpm-lock.yaml
700
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue