Skip to content

Commit

Permalink
chore: add deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Aug 28, 2023
1 parent 9210062 commit d266bc2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,16 @@ jobs:
run: |
./scripts/rebuild_v3 --input-dir 'data/' --output-dir 'data_output/' --push --repo="${GITHUB_REPOSITORY}"
- name: "Rebuild, commit, push and deploy datasets"
- name: "Rebuild, commit, push and make a release"
if: github.ref == 'refs/heads/release'
run: |
./scripts/rebuild_v3 --input-dir 'data/' --output-dir 'data_output/' --release --repo="${GITHUB_REPOSITORY}"
- name: "Deploy dataset server"
if: ${{ endsWith(github.ref, '/master') || endsWith(github.ref, '/staging') || endsWith(github.ref, '/release') }}
run: |
./scripts/upload
- name: "Upload build artifacts: dataset server"
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit d266bc2

Please sign in to comment.