更新 README.md
This commit is contained in:
44
README.md
44
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: <your-ecs-action-runner>
|
||||||
|
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: <your-ecs-action-runner>`
|
||||||
Reference in New Issue
Block a user