35 lines
1.2 KiB
Markdown
35 lines
1.2 KiB
Markdown
# makepkg-build-action
|
|
|
|
Gitea action for building pacman packages. Uses [Archery](https://git.sanin.dev/corysanin/archery) Docker images for building
|
|
|
|
## Usage
|
|
|
|
See [action.yml](action.yml).
|
|
|
|
```
|
|
- uses: https://git.sanin.dev/packages_infra/makepkg-build-action@v1-artix
|
|
with:
|
|
# Which repos to use. Can be stable, testing, staging
|
|
deps: 'stable'
|
|
|
|
# Which tier of repos to use. 0 for system, 1 for world, etc.
|
|
tier: '1'
|
|
|
|
# Username intended to be used for publishing artifacts. Wihtout a proper post-entrypoint.sh script to
|
|
# utilize it, this input does nothing.
|
|
username: 'anonymous'
|
|
|
|
# Token to use for authentication with artifact destination. Wihtout a proper post-entrypoint.sh script
|
|
# to utilize it, this input does nothing.
|
|
token: 'anonymous'
|
|
```
|
|
|
|
Select the desired distro to build in by appending `-artix` or `-arch` after the version number.
|
|
|
|
## Publishing
|
|
|
|
See [publish.yml](https://git.sanin.dev/packages_infra/package_template/src/branch/master/.gitea/workflows/publish.yml).
|
|
|
|
In order to publish an artifact, the repo must contain a `post-entrypoint.sh` script that performs publishing tasks.
|
|
The script has access to `$username` and `$token` that were passed in as action inputs.
|