Skip to content

Commit

Permalink
Merge pull request #488 from axodotdev/keep-on-keeping-on
Browse files Browse the repository at this point in the history
feat(ci): combine schema and css release uploads
  • Loading branch information
ashleygwilliams authored Jun 28, 2023
2 parents 5d7e79f + e58404a commit b6d6add
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# After a release is successfully published, upload oranda-config-schema.json to it
name: Release - Config Schema
# After a release is successfully published, upload oranda-config-schema.json and oranda-css to it
name: Release - Config Schema and Css

# We're going to edit a gh release, so we need that permission
permissions:
Expand All @@ -14,7 +14,7 @@ on:

# Alright, let's do it!
jobs:
web:
schema:
name: Add schema to release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -31,4 +31,25 @@ jobs:
echo "uploading schema to ${{ github.event.workflow_run.head_branch }}"
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/oranda/releases/download/${{ github.event.workflow_run.head_branch }}/oranda-installer.sh | sh
oranda config-schema > oranda-config-schema.json
gh release upload ${{ github.event.workflow_run.head_branch }} oranda-config-schema.json
gh release upload ${{ github.event.workflow_run.head_branch }} oranda-config-schema.json
oranda-css:
name: Add oranda-css to release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- id: build-css
run: |
cd oranda-css
yarn install
# Run tailwind build
yarn run build
ls dist
echo "built css!"
# Upload css to the Github Release™
gh release upload ${{ github.event.workflow_run.head_branch }} dist/oranda.css
echo "uploaded css!"
30 changes: 0 additions & 30 deletions .github/workflows/grouped-oranda-css.yml

This file was deleted.

0 comments on commit b6d6add

Please sign in to comment.