Skip to content

Commit

Permalink
build: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
philostler committed Mar 15, 2024
1 parent 38e0aaf commit cf94a3f
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 30 deletions.
8 changes: 8 additions & 0 deletions .github/actions/www/format/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Format
runs:
using: composite
steps:
- name: Format
run: yarn format:check
shell: bash
working-directory: packages/www
8 changes: 8 additions & 0 deletions .github/actions/www/lint/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Lint
runs:
using: composite
steps:
- name: Lint
run: yarn lint:check
shell: bash
working-directory: packages/www
34 changes: 4 additions & 30 deletions .github/workflows/main-push.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
name: main Push
on:
push:
branches: main
permissions:
contents: read
id-token: write
pages: write
concurrency:
cancel-in-progress: false
group: "pages"
workflow_call:
jobs:
build:
name: Build
name: www
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -32,26 +23,9 @@ jobs:
run: yarn install
working-directory: packages/www
- name: Format
run: yarn format:check
working-directory: packages/www
uses: ./.github/actions/www/format
- name: Lint
run: yarn lint:check
working-directory: packages/www
uses: ./.github/actions/www/lint
- name: Build
run: yarn build
working-directory: packages/www
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
path: packages/www/out
deploy:
name: Deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
8 changes: 8 additions & 0 deletions .github/workflows/push-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Push develop
on:
push:
branches: develop
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
17 changes: 17 additions & 0 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Push main
on:
push:
branches: main
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
config-file: release-please-config.json
manifest-file: release-please-manifest.json
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
5 changes: 5 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"packages": {
"packages/www": {}
}
}
1 change: 1 addition & 0 deletions release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit cf94a3f

Please sign in to comment.