Skip to content

Commit

Permalink
Try to manage releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Feb 13, 2023
1 parent 5e7e4d7 commit 4d50f71
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

on:
release:
types: [created, edited]

jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME: Pharo-AI-${{ matrix.smalltalk }}
strategy:
matrix:
smalltalk: [ Pharo64-10, Pharo64-11 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-version: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
shell: bash
timeout-minutes: 15

# Here we zip the result of the build to be able to keep the artefacts
- name: package
run: |
mv /home/runner/.smalltalkCI/_builds/* .
mv TravisCI.image $PROJECT_NAME.image
mv TravisCI.changes $PROJECT_NAME.changes
echo ${${{ matrix.smalltalk }}} | sed -e 's/.*\-//g ; s/\..*//g ; s/$/0/' > pharo.version
zip -r $PROJECT_NAME.zip $PROJECT_NAME.image $PROJECT_NAME.changes *.sources pharo.version
ls
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ env.PROJECT_NAME }}.zip

0 comments on commit 4d50f71

Please sign in to comment.