47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags: ["*"]
|
|
|
|
env:
|
|
PUBLISH_USER: ${{ vars.PUBLISH_USERNAME }}
|
|
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_TOKEN }}
|
|
KEY_STORE: keystore.jks
|
|
KEY_PASS: ${{ secrets.KEY_PASS }}
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- run: echo '' > requirements.txt
|
|
- uses: https://git.shmyga.ru/InfernalGames/project-manager@master
|
|
- name: Restore haxe cache
|
|
id: cache-haxe-restore
|
|
uses: actions/cache/restore@v6
|
|
with:
|
|
key: ${{ runner.os }}-haxe-${{ hashFiles('**/haxetool.json') }}
|
|
path: |
|
|
${{ env.HOME }}/sdk
|
|
./build
|
|
- run: echo "${{ secrets.KEY_STORE }}" | base64 --decode > keystore.jks
|
|
- run: pm build:docker -vv
|
|
- name: Save haxe cache
|
|
id: cache-haxe-save
|
|
#if: always() && steps.cache-haxe-restore.outputs.cache-hit != 'true'
|
|
if: always()
|
|
uses: actions/cache/save@v6
|
|
with:
|
|
key: ${{ steps.cache-haxe-restore.outputs.cache-primary-key }}
|
|
path: |
|
|
${{ env.HOME }}/sdk
|
|
./build
|
|
- uses: docker/login-action@v4
|
|
with:
|
|
registry: git.shmyga.ru
|
|
username: ${{ vars.PUBLISH_USERNAME }}
|
|
password: ${{ secrets.PUBLISH_TOKEN }}
|
|
- run: pm publish:docker -vv
|
|
- run: pm publish:gitea -vv
|