Skip to content

Commit

Permalink
Added automatic tag "latest-release"
Browse files Browse the repository at this point in the history
(for future usage of Binder)
  • Loading branch information
christophe-david committed Jun 8, 2021
1 parent b538d5c commit 53ba5e9
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,40 @@
name: Build
name: Build PyPI package and Binder image

on:
release:
types: [published]

jobs:
build:
delete-tag:
runs-on: ubuntu-latest
steps:
- name: Delete tag
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/latest-release",
})
create-tag:
runs-on: ubuntu-latest
steps:
- name: Create tag
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/latest-release",
sha: context.sha
})
build-publish-package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down

0 comments on commit 53ba5e9

Please sign in to comment.