From 957ea5455fd422ba82c4a643e508c090077d82e0 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Fri, 5 Jul 2024 23:48:33 -0700 Subject: [PATCH] forgejo actions --- .forgejo/workflows/build.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..c66962e --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,22 @@ +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Ruby + uses: https://github.com/ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + with: + ruby-version: '3.2.2' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + + - name: Build + run: npm run build + - name: Copy + run: cp -r dist/* /pages/ \ No newline at end of file