From 4c1e01b3c4a986649de93857cccb9a2f67c25099 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Fri, 11 Aug 2023 12:11:00 +0200 Subject: [PATCH] Add .gitea/workflows/release-nighty.yaml --- .gitea/workflows/release-nighty.yaml | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .gitea/workflows/release-nighty.yaml diff --git a/.gitea/workflows/release-nighty.yaml b/.gitea/workflows/release-nighty.yaml new file mode 100644 index 0000000..f543f96 --- /dev/null +++ b/.gitea/workflows/release-nighty.yaml @@ -0,0 +1,46 @@ +name: Build and Publish +on: + push: + branches: + - 'dev' + +jobs: + Build and Publish Discord Bot: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - run: npm install + working-directory: ./discordbot + + - uses: docker/login-action@v2 + with: + registry: gitea.xeovalyte.dev + username: ${{ gitea.actor }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - uses: docker/build-push-action@master + with: + context: ./discordbot + push: true + tags: gitea.xeovalyte.dev/xeovalyte/polarcraft:nightly + + + Build and Publish Minecraft Mod: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: Kir-Antipov/mc-publish@v3.3 + working-directory: ./mod + with: + github_token: ${{ secrets.GITEA_TOKEN }} + + +