mirror of
https://github.com/tsxc-github/mzmcos--.git
synced 2025-09-10 11:29:19 +08:00
38 lines
657 B
YAML
38 lines
657 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: 'Branch to build'
|
|
required: true
|
|
default: 'main'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
packages: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.11
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: 3.11
|
|
|
|
- name: run shell script
|
|
run: |
|
|
bash ./run.sh
|
|
|
|
- name: Push changes
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.TOKEN }}
|