Conty/.github/workflows/conty.yml
Kron4ek 91aa7b01b4
Add continuous release creation to the workflow
By default it creates a draft release.
2023-07-06 23:30:47 +05:00

43 lines
1,004 B
YAML

name: Conty CI
on:
schedule:
- cron: '0 0 * * 5'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Conty
run: |
chmod +x create-arch-bootstrap.sh create-conty.sh
sed -i 's/sed/#sed/g' create-arch-bootstrap.sh
sudo ./create-arch-bootstrap.sh && ./create-conty.sh
- uses: dev-drprasad/delete-tag-and-release@v1.0
with:
tag_name: continuous
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_release: true
- uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: "continuous"
- uses: softprops/action-gh-release@v1
with:
files: conty.sh
prerelease: true
draft: true
tag_name: continuous
name: Continuous build
- uses: actions/upload-artifact@v3
with:
name: Conty
path: conty.sh