Extract interface files from CDN #974
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 Packages | |
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev | |
- name: Install Lua | |
uses: leafo/[email protected] | |
with: | |
luaVersion: "5.1" | |
- name: Install Luarocks | |
uses: leafo/gh-actions-luarocks@v4 | |
with: | |
luarocksVersion: "3.11.0" | |
- name: Install lua-zlib | |
run: luarocks install lua-zlib | |
- name: Install luacurl | |
run: luarocks install luacurl CURL_INCDIR=/usr/include/$(gcc -dumpmachine) | |
- name: Install LuaFileSystem | |
run: luarocks install LuaFileSystem | |
- name: Install md5 | |
run: luarocks install md5 | |
- 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 vanilla ptr 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 }} |