Skip to content

Commit

Permalink
[Minor][Dev] Update release workflow to make release easy and revise …
Browse files Browse the repository at this point in the history
…other workflows (#323)
  • Loading branch information
acezen authored Jan 15, 2024
1 parent 000e27b commit 4ba7df3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- cron: '00 19 * * *'
jobs:
GraphAr-ubuntu-arrow-from-source:
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphAr' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pyspark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ on:
push:
branches:
- main
paths:
- 'spark/**'
- 'pyspark/**'
- '.github/workflows/pyspark.yaml'
pull_request:
branches:
- main
paths:
- 'spark/**'
- 'pyspark/**'
- '.github/workflows/pyspark.yaml'

concurrency:
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ on:
push:
tags:
- "v*"
workflow_dispatch:

concurrency:
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true

# Automatically create a GitHub Release, with release details specified (the relevant commits)
jobs:
Expand All @@ -30,9 +34,17 @@ jobs:
os: [ubuntu-latest]

steps:
- name: Release
- name: Extract tag name
id: tag
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphAr' }}
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Cut a versioned release
uses: "marvinpinto/action-automatic-releases@latest"
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphAr' }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.tag.outputs.TAG }}
draft: true
prerelease: false
title: "GraphAr ${{ steps.tag.outputs.TAG }}"

0 comments on commit 4ba7df3

Please sign in to comment.