clean up ci

main
Anton Franzluebbers 2023-08-05 15:19:45 -04:00
parent 206a683bc7
commit bd7be1e191
6 changed files with 82 additions and 41 deletions

View File

@ -1,30 +0,0 @@
name: CI
on:
push:
branches:
- main
paths:
- TestVelGameServer/
jobs:
split-upm:
name: split upm branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.WORKFLOW_TOKEN }}
- name: split upm branch
run: |
git subtree split -P "$PKG_ROOT" -b upm
git checkout upm
if [[ -d "Samples" ]]; then
git mv Samples Samples~
rm -f Samples.meta
git config --global user.name 'github-bot'
git config --global user.email 'github-bot@users.noreply.github.com'
git commit -am "Rename Samples to Samples~"
fi
git push -f -u origin upm
env:
PKG_ROOT: TestVelGameServer/Packages/VelNetUnity

29
.github/workflows/create-upm.yml vendored Normal file
View File

@ -0,0 +1,29 @@
on:
push:
branches:
- main
paths:
- TestVelGameServer/**
jobs:
split-upm:
name: split upm branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.WORKFLOW_TOKEN }}
- name: split upm branch
run: |
git subtree split -P "$PKG_ROOT" -b upm
git checkout upm
if [[ -d "Samples" ]]; then
git mv Samples Samples~
rm -f Samples.meta
git config --global user.name 'github-bot'
git config --global user.email 'github-bot@users.noreply.github.com'
git commit -am "Rename Samples to Samples~"
fi
git push -f -u origin upm
env:
PKG_ROOT: TestVelGameServer/Packages/VelNetUnity

View File

@ -7,7 +7,7 @@ on:
- $SUBFOLDER/**
jobs:
publish:
publish-docs:
runs-on: ubuntu-latest
permissions:
contents: read
@ -34,7 +34,7 @@ jobs:
- name: Upload
working-directory: ${{env.SUBFOLDER}}
env:
PROJECT_NAME: convrged
PROJECT_NAME: velnet-docs
CLOUDFLARE_ACCOUNT_ID: 8077b5b1f8e2ade41874cbaa3f883069
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: npx wrangler@3.1.1 pages deploy ".svelte-kit/cloudflare" --project-name="${{env.PROJECT_NAME}}" --branch="${{env.GITHUB_REF_NAME}}"
run: npx wrangler@3.1.1 pages deploy dist --project-name="${{env.PROJECT_NAME}}" --branch="${{env.GITHUB_REF_NAME}}"

View File

@ -1,9 +1,12 @@
import { defineConfig } from 'astro/config';
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import cloudflare from "@astrojs/cloudflare";
// https://astro.build/config
export default defineConfig({
integrations: [mdx(), tailwind()]
integrations: [mdx(), tailwind()],
output: "server",
adapter: cloudflare()
});

View File

@ -7,9 +7,9 @@
"": {
"version": "0.0.1",
"dependencies": {
"@astrojs/cloudflare": "^6.6.2",
"@astrojs/mdx": "^0.19.7",
"@astrojs/tailwind": "^4.0.0",
"@picocss/pico": "^1.5.10",
"astro": "^2.10.1",
"tailwindcss": "^3.3.3"
}
@ -37,6 +37,20 @@
"node": ">=6.0.0"
}
},
"node_modules/@astrojs/cloudflare": {
"version": "6.6.2",
"resolved": "https://registry.npmjs.org/@astrojs/cloudflare/-/cloudflare-6.6.2.tgz",
"integrity": "sha512-2lYQIzTBVnzUNJa1swwrklAb7t1B7C2b5snyzFSlDiA8XcbSmUaKUusPkIzjqUInZ9wJPuk6lG3SwYVw+wlGhQ==",
"dependencies": {
"@astrojs/underscore-redirects": "^0.2.0",
"@cloudflare/workers-types": "^4.20230518.0",
"esbuild": "^0.17.19",
"tiny-glob": "^0.2.9"
},
"peerDependencies": {
"astro": "^2.8.4"
}
},
"node_modules/@astrojs/compiler": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-1.8.0.tgz",
@ -174,6 +188,11 @@
"node": ">=16.12.0"
}
},
"node_modules/@astrojs/underscore-redirects": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/@astrojs/underscore-redirects/-/underscore-redirects-0.2.0.tgz",
"integrity": "sha512-TP+uEdqMGNC7Lyci6WmbHvvMElBDSyHlTsvGH9E9/2duvD/n4KJVyr59klycEroaZJiAi5tzlXL8Jsl9/R32gQ=="
},
"node_modules/@astrojs/webapi": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@astrojs/webapi/-/webapi-2.2.0.tgz",
@ -518,6 +537,11 @@
"node": ">=6.9.0"
}
},
"node_modules/@cloudflare/workers-types": {
"version": "4.20230801.0",
"resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20230801.0.tgz",
"integrity": "sha512-RzRUR+J/T3h58qbTZHYntYsnZXu3JnrlZIhqP2hhdyfoZAZ/+ko4wX0foAqlYHi+kXWaWtySHBuMcx6ec6TXlQ=="
},
"node_modules/@emmetio/abbreviation": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/@emmetio/abbreviation/-/abbreviation-2.3.3.tgz",
@ -977,11 +1001,6 @@
"node": ">= 8"
}
},
"node_modules/@picocss/pico": {
"version": "1.5.10",
"resolved": "https://registry.npmjs.org/@picocss/pico/-/pico-1.5.10.tgz",
"integrity": "sha512-+LafMsrwPxXQMk6sI///TmSInCwwZmq+K7SikyL3N/4GhhwzyPC+TQLUEqmrLyjluR+uIpFFcqjty30Rtr6GxQ=="
},
"node_modules/@pkgr/utils": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz",
@ -2451,6 +2470,16 @@
"node": ">=4"
}
},
"node_modules/globalyzer": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q=="
},
"node_modules/globrex": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="
},
"node_modules/graceful-fs": {
"version": "4.2.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
@ -5714,6 +5743,15 @@
"node": ">=0.8"
}
},
"node_modules/tiny-glob": {
"version": "0.2.9",
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
"dependencies": {
"globalyzer": "0.1.0",
"globrex": "^0.1.2"
}
},
"node_modules/titleize": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz",

View File

@ -10,6 +10,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/cloudflare": "^6.6.2",
"@astrojs/mdx": "^0.19.7",
"@astrojs/tailwind": "^4.0.0",
"astro": "^2.10.1",