Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #27 from rapidsai/add-cd
Browse files Browse the repository at this point in the history
Add GitHub Action for releases
  • Loading branch information
ajschmidt8 authored May 10, 2022
2 parents 0fd85cc + e1e5d08 commit ff8b368
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: release main

on:
push:
branches:
- main
paths:
- "tools/*"
- ".github/workflows/release.yaml"

jobs:
release:
env:
RELEASE_FILE_NAME: tools.tar.gz
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Package Scripts
run: |
tar -czf ${{ env.RELEASE_FILE_NAME }} -C ./tools .
- name: Compute Next Tag Name
run: |
LAST_TAG=$(git describe --tags --abbrev=0)
NEXT_PATCH_VERSION=$(echo ${LAST_TAG} | awk -F. -v OFS=. '{$NF += 1 ; print}')
echo "NEXT_PATCH_VERSION=$NEXT_PATCH_VERSION" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ env.RELEASE_FILE_NAME }}
tag_name: ${{ env.NEXT_PATCH_VERSION }}
Empty file modified tools/gpuci_conda_retry
100644 → 100755
Empty file.
Empty file modified tools/gpuci_logger
100644 → 100755
Empty file.
Empty file modified tools/gpuci_mamba_retry
100644 → 100755
Empty file.
Empty file modified tools/gpuci_retry
100644 → 100755
Empty file.

0 comments on commit ff8b368

Please sign in to comment.