Skip to content

Commit

Permalink
Create automatic-releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arcuslinus authored Jun 12, 2024
1 parent 927b820 commit b0cc0d1
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/automatic-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Automatic Releases

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Select platform(s)
os:
- ubuntu-latest
# Select compatible Smalltalk image(s)
smalltalk: [ Squeak64-6.0 ]

name: ${{ matrix.smalltalk }} on ${{ matrix.os }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalk.release.ston
timeout-minutes: 15

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: pre-${{ github.run_number }}
release_name: pre-${{ github.run_number }}
draft: false
prerelease: true

- name: Upload Release Asset
id: 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: /home/runner/.smalltalkCI/_builds/squello.sar
asset_name: squello.sar
asset_content_type: application/zip

0 comments on commit b0cc0d1

Please sign in to comment.