Skip to content

Commit

Permalink
fix(ci): consolidate build/upload steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleygwilliams committed Mar 17, 2023
1 parent 7b2e3be commit 0fc2268
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/oranda-css.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,29 @@ jobs:
gh release create ${{ github.ref_name }} --draft
echo "created announcement!"
build-css:
needs: [create-release]
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- id: build-css
run: |
cd oranda-css
npm i
yarn install
# Run tailwind build
npm run build
yarn run build
ls dist
echo "built css!"
upload-css:
runs-on: ubuntu-latest
needs: [create-release, build-css]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: upload-css
run: |
# Upload the manifest to the Github Release™
gh release upload ${{ github.ref_name }} oranda-css/dist/oranda.css
# Upload css to the Github Release™
gh release upload ${{ github.ref_name }} dist/oranda.css
echo "uploaded css!"
publish-release:
runs-on: ubuntu-latest
needs: [upload-css]
needs: [build-css]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down

0 comments on commit 0fc2268

Please sign in to comment.