Skip to content

Commit

Permalink
add delay
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed Apr 17, 2024
1 parent b91f20b commit fdd0d2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [main, zig-master]
pull_request:
branches: [main]
schedule:
- cron: "0 0 * * *"

jobs:
build:
Expand Down Expand Up @@ -36,6 +38,7 @@ jobs:
MICROZIG_VERSION=$(zig build package -- get-version)
zig build package -- http://localhost:8000
python3 -m http.server 8000 --directory boxzer-out > http.log &
sleep 1
cd tools/package-test
zig fetch --save=microzig http://localhost:8000/microzig-${MICROZIG_VERSION}.tar.gz
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
deploy-packages:
runs-on: ubuntu-latest
steps:
- name: Extract tag name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -26,19 +23,21 @@ jobs:
with:
version: master

- name: Extract version
run: echo "MICROZIG_VERSION=$(zig build package -- get-version)" >> $GITHUB_ENV

- name: Assemble Packages
run: zig build package -- "${{ secrets.DOWNLOADS_URL }}"

# TODO: Validation

- name: Deploy
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
ARGS: "-vzrli"
SOURCE: "boxzer-out/${{ env.TAG_NAME }}/"
SOURCE: "boxzer-out/"
REMOTE_HOST: ${{ secrets.DEPLOY_HOST }}
REMOTE_USER: ${{ secrets.DEPLOY_USER }}
REMOTE_PORT: ${{ secrets.DEPLOY_PORT }}
TARGET: "."

# TODO: create github release

0 comments on commit fdd0d2d

Please sign in to comment.