Skip to content

Commit

Permalink
first test for auto release mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Nov 30, 2022
1 parent 401bb5a commit 56876af
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release Assist

on:
push:
tags:
- 'v[0-9]*'

env:
LC_ALL: C

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Update Software
run: |
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install autoconf automake autopoint gettext libtool
- name: Build Step "autoreconf"
run: autoreconf -vis .
- name: Build Step "configure"
run: ./configure
- name: Build Step "make"
run: make
- name: Build Step "make check"
run: make check
- name: Build Step "make distcheck"
run: |
make distcheck
ls ndim-utils-*.tar.xz | while read tarball; do if test -f "$tarball"; then echo "RELEASE_TARBALL=$tarball" >> $GITHUB_ENV; break; fi; done
- name: Create Release
id: create_release
if: false
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Assets
id: upload-release-assets
if: false
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.RELEASE_TARBALL }}
asset_name: ${{ env.RELEASE_TARBALL }}
asset_content_type: application/x-xz

0 comments on commit 56876af

Please sign in to comment.