fix compatibility issue with 41b447876dc857a27569e6a18f478f07c9ca5f2f #199
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: Release | |
on: [push, workflow_dispatch] | |
jobs: | |
create-image: | |
if: github.event.pull_request.draft != true # #GreenIT | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: LinqLover/create-image@latest | |
id: create-image | |
with: | |
squeak-version: '6.0' | |
prepare-script: ./scripts/prepareImage.st | |
postpare-script: ./scripts/postpareImage.st | |
- uses: actions/upload-artifact@master | |
with: | |
name: image | |
path: ${{ steps.create-image.outputs.bundle-path }} | |
release-image: | |
needs: create-image | |
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- id: date | |
run: echo "date=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT | |
- uses: actions/download-artifact@master | |
with: | |
name: image | |
- run: mv Squeak*.zip SqueakInboxTalk-${{ steps.date.outputs.date }}.zip | |
- uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: untagged-${{ steps.date.outputs.date }} | |
body: ${{ github.event.head_commit.message }} | |
files: SqueakInboxTalk-*.zip | |
fail_on_unmatched_files: true | |
prerelease: true | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- uses: dev-drprasad/[email protected] | |
with: | |
delete_tag_pattern: untagged- | |
keep_latest: 1 | |
delete_tags: true | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |