Skip to content

Patch for April 10th Rust update (Protocol 2585.266.1) #6

Patch for April 10th Rust update (Protocol 2585.266.1)

Patch for April 10th Rust update (Protocol 2585.266.1) #6

Workflow file for this run

name: Build and Create Release
on:
push:
branches:
- master
workflow_dispatch:
inputs:
message:
description: 'Release note'
required: true
jobs:
build:
name: Run Build
uses: OxideMod/Actions/.github/workflows/game-build.yml@main
with:
game: "Rust"
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
release:
name: Create Release
runs-on: ubuntu-22.04
needs: build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: artifacts
- name: Deploy to GitHub Releases
uses: softprops/action-gh-release@v1
with:
files: |
artifacts/Oxide.*.zip
tag_name: ${{ needs.build.outputs.version }}
fail_on_unmatched_files: true
token: ${{ secrets.GITHUB_TOKEN }}
body: |
See https://umod.org/games/rust for changes
update-docs:
name: Update Documentation
runs-on: ubuntu-22.04
needs: build
steps:
- name: Checkout Docs Repository
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/Oxide.Docs
token: ${{ secrets.REPO_ACCESS_TOKEN }}
ref: main
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-docs
- name: Commit and Push Changes
run: |
git config --global user.email [email protected]
git config --global user.name oxidemod-bot
git add docs.json
git diff-index --quiet HEAD || git commit -m "Update hooks index to ${{ needs.build.outputs.version }}"
git push