Extract interface files from CDN #655
This file contains 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: Extract interface files from CDN | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Remove old files | |
run: | | |
shopt -s extglob | |
rm -r !(*.git*|*.sublime-*|*.md) | |
- name: Install Lua | |
uses: leafo/[email protected] | |
with: | |
luaVersion: "5.2" | |
- name: Checkout InterfaceExport | |
uses: actions/checkout@v3 | |
with: | |
repository: Gethe/InterfaceExport | |
path: InterfaceExport | |
- name: Run Export | |
env: | |
LUA_PATH: "./InterfaceExport/libs/?.lua;./InterfaceExport/libs/?/init.lua" | |
run: | | |
lua InterfaceExport/export.lua retail ptr2 code | |
- name: Get build version | |
id: version | |
uses: andstor/file-reader-action@v1 | |
with: | |
path: "version.txt" | |
- name: Add & Commit | |
uses: EndBug/add-and-commit@latest | |
with: | |
message: ${{ steps.version.outputs.contents }} | |
default_author: github_actions | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |