From 0accd3e32bfe16cc796a946d44df2ac3837df278 Mon Sep 17 00:00:00 2001 From: MONKEY Giant Date: Mon, 27 May 2024 08:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ef3f658..b5c4d59 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,44 @@ -# Checkout +Quick Start +=========== +Create your workflow actions under `.gitea/workflows` directory. + +```yaml +name: Demo Gitea Actions +run-name: ${{ gitea.actor }} +on: + push: + branches: + - main + tags: + - v* + +defaults: + run: + shell: bash + +jobs: + Explore-Gitea-Actions: + runs-on: + steps: + - uses: Actions/Checkout@main + - run: echo " The ${{ gitea.repository }} repository has been cloned to the runner." + - run: git status + - name: Run Your Build steps + working-directory: src/ + env: + CONF_ENV: ${{ vars.CONF_ENV }} + run: | + dotnet restore -s ./packages/ + dotnet build --no-restore -c Release + dotnet publish --no-build -c Release + - name: Run Your Unit Tests + working-directory: test/ + env: + CONF_ENV: ${{ vars.CONF_ENV }} + run: dotnet test --no-build -c Release + +``` + +Remarks +- Update your `runs-on: ` \ No newline at end of file