From 5f2acedebfacb048f4481509288f7659cc3c136a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Toborek?= Date: Mon, 26 Aug 2024 23:50:15 +0200 Subject: [PATCH] add GitHub Action for build automation --- .github/workflows/release.yaml | 34 ++++++++++++++++++++++++++++++++++ README.md | 4 ++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..4296db9 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,34 @@ +name: Build on tag creation + +on: + push: + tags: + - '*' + +jobs: + build: + name: Build bib2xml.phar and update release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up PHP v8.2 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + ini-values: phar.readonly=Off + + - name: Build project + run: | + php -f create-phar.php + move bin\bib2xml.phar.gz bin\bib2xml.phar + + - name: Update release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: bin\bib2xml.phar + asset_name: bib2xml.phar + tag: ${{ github.ref }} + overwrite: true diff --git a/README.md b/README.md index 316e7b4..2aa87f7 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,10 @@ php bib2xml.phar convert input_translation.bblx Changelog: ---------- +* v0.6.1.0 (2024-08-26): + - upgraded PHP to v8.2 + - added GitHub Action for build automation + * v0.6.0.0 (2023-11-24): - added `csv` input format support