Skip to content

Commit 632f3af

Browse files
committed
CI: Only deploy on master or tag
1 parent 176d513 commit 632f3af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ jobs:
5656
path: emlearn-micropython-*.zip
5757

5858
- name: Deploy to Github Pages
59+
if: "github.ref_name == 'master' || github.ref_type == 'tag'"
5960
uses: peaceiris/actions-gh-pages@v3
6061
with:
6162
github_token: ${{ secrets.GITHUB_TOKEN }}
6263
publish_dir: ./dist
6364
keep_files: true
64-
destination_dir: builds/0.3.0/
65+
destination_dir: builds/${{ github.ref_name }}

0 commit comments

Comments
 (0)