1
0
Fork 0

Merge remote-tracking branch 'origin/main'
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled Details

Dieser Commit ist enthalten in:
o.pinke 2024-01-12 19:15:40 +01:00
Commit 869f11b118
2 geänderte Dateien mit 67 neuen und 0 gelöschten Zeilen

19
.gitea/workflows/build.yaml Normale Datei
Datei anzeigen

@ -0,0 +1,19 @@
# .gitea/workflows/build.yaml
name: Gitea Actions Demo
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

48
.gitea/workflows/release.yml Normale Datei
Datei anzeigen

@ -0,0 +1,48 @@
name: "Release"
on:
push:
tags:
- "*"
env:
COMPOSER_FLAGS: "--no-dev --no-interaction"
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "intl"
ini-values: "memory_limit=-1"
php-version: "7.4"
- name: "Install dependencies from composer.lock using composer binary provided by system"
run: "composer install ${{ env.COMPOSER_FLAGS }}"
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: '${{ github.event.repository.name }}.zip'
exclusions: '*.git* /*node_modules/* .editorconfig'
- name: Upload Release
uses: ncipollo/release-action@v1
with:
artifacts: "${{ github.event.repository.name }}.zip"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: ${{ github.event.repository.name }}.zip