Merge branch 'master' of https://github.com/Srlion/RNDX #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: push | |
| jobs: | |
| now: | |
| runs-on: windows-2022 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| shell: pwsh | |
| run: | | |
| python build.py | |
| copy src/rndx_compiled.lua C:\rndx.lua | |
| - name: Set Unix Timestamp | |
| id: time | |
| shell: pwsh | |
| run: | | |
| # Get the current Unix time | |
| $timestamp = Get-Date -UFormat %s | |
| # Save the timestamp as an output variable | |
| echo "timestamp=$timestamp" >> $env:GITHUB_OUTPUT | |
| - name: Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: ${{ steps.time.outputs.timestamp }} | |
| allowUpdates: true | |
| artifacts: C:\rndx.lua |