Skip to content

Commit

Permalink
feat: auto-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed May 7, 2024
1 parent bccc2f2 commit 22b5046
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,17 @@ jobs:
VERSION=${{ steps.get-tag.outputs.tag }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}

deploy:
needs: [publish-image]
name: Deploy to production
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Deploy to production
run: |
if [[ ${{ github.ref }} == 'refs/heads/main' || ${{ github.ref }} == 'refs/heads/beta' ]]; then
curl -X GET ${{ secrets.DEPLOY_URL }}
fi
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 class="text-3xl font-bold underline text-white">V1</h1>
<h1 class="text-3xl font-bold underline text-white">V2</h1>

<style lang="postcss">
:global(html) {
Expand Down

0 comments on commit 22b5046

Please sign in to comment.