Skip to content

Merge pull request #411 from Edirom/ftr/366-remove-unused-xql #9

Merge pull request #411 from Edirom/ftr/366-remove-unused-xql

Merge pull request #411 from Edirom/ftr/366-remove-unused-xql #9

Workflow file for this run

name: pre-release
on:
push:
branches: [ develop ]
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ develop, main ]
permissions:
contents: read
env:
DOCKER_IMAGE: bwbohl/sencha-cmd
jobs:
build:
name: Build Edirom Online
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Chekout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: 'recursive'
- name: Get short sha
uses: benjlevesque/short-sha@599815c8ee942a9616c92bcfb4f947a3b670ab0b # v3.0
id: short-sha
with:
length: 7
- name: Build Edirom Online from ${{ github.ref }} at ${{ github.sha }}
run: docker run --rm -v $(pwd):/app -w /app --entrypoint ./build.sh bwbohl/sencha-cmd
- name: Upload Artifacts to action run
if: github.repository == 'Edirom/Edirom-Online'
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
# The name that the artifact will be made available under
name: EdiromOnline_${{ steps.short-sha.outputs.sha }}.zip
# The path to retrieve the artifact
path: ${{ github.workspace }}/build-xar/Edirom-Online-*.xar
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
#optional retention-days: 1 to 90
- name: Delete dev-release
if: ${{ github.event_name == 'push' && github.ref_name == 'develop' }}
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: dev
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create dev-release
if: ${{ github.event_name == 'push' && github.ref_name == 'develop' }}
uses: ncipollo/[email protected]
with:
allowUpdates: true
artifacts: ${{ github.workspace }}/build-xar/Edirom-Online-*.xar
commit: ${{ github.sha }}
name: "Development Build"
prerelease: true
replacesArtifacts: true
tag: dev