-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease_minetest_gymnasium.yaml
More file actions
39 lines (39 loc) · 1.42 KB
/
release_minetest_gymnasium.yaml
File metadata and controls
39 lines (39 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: release_minetest_gymnasium
on: # yamllint disable-line rule:truthy
push:
tags:
- minetest-gymnasium/v*
workflow_dispatch:
jobs:
rattler-build:
runs-on: ubuntu-latest
steps:
# Needed to run the tests
- name: install libgl
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev
- name: write rattler credentials
# Can be removed once https://github.com/prefix-dev/rattler-build-action/issues/4
run: |
RATTLER_AUTH_FILE=${{ runner.temp }}/credentials.json
echo '{"repo.prefix.dev":{"BearerToken":"${{ secrets.PREFIX_DEV_API_KEY }}"}}' > "${RATTLER_AUTH_FILE}"
echo "RATTLER_AUTH_FILE=$RATTLER_AUTH_FILE" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
with:
submodules: true
- name: build minetest-gymnasium
uses: prefix-dev/rattler-build-action@v0.2.9
with:
recipe-path: ./rattler-build-recipe/minetest-gymnasium/recipe.yaml
build-args: --channel=https://repo.prefix.dev/obelisk --channel=conda-forge
upload-artifact: false # don't upload to GitHub
- name: upload
run: |
for pkg in $(find ./output -type f \( -name "*.conda" \) ); do
echo "Uploading ${pkg}"
rattler-build upload prefix -c obelisk "${pkg}"
done
env:
PREFIX_API_KEY: ${{ secrets.PREFIX_DEV_API_KEY }}