change include path #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release on Master Push | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create tar.gz | |
run: tar -czf airflow-pulsar-plugin.tar.gz -C src airflow_pulsar_plugin | |
- name: Generate release tag | |
id: tag | |
run: | | |
sha_short=$(git rev-parse --short HEAD) | |
ts=$(date +"%Y%m%d%H%M%S") | |
echo "::set-output name=release_tag::release-${ts}-${sha_short}" | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.tag.outputs.release_tag }} | |
release_name: Release ${{ steps.tag.outputs.release_tag }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./airflow-pulsar-plugin.tar.gz | |
asset_name: airflow-pulsar-plugin-${{ steps.tag.outputs.release_tag }}.tar.gz | |
asset_content_type: application/gzip |