Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 143dd7cb79 | |
Derrick Hammer | 03f00cb520 | |
Derrick Hammer | d2f7cbac42 |
|
@ -1,3 +1,5 @@
|
||||||
|
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/web3.news-publisher/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-12-28)
|
||||||
|
|
||||||
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/web3.news-publisher/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-12-28)
|
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/web3.news-publisher/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-12-28)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Use a base image that includes necessary environments (e.g., Node.js)
|
||||||
|
FROM node:18.17.0
|
||||||
|
|
||||||
|
# Install Bun
|
||||||
|
RUN curl -fsSL https://bun.sh/install | bash
|
||||||
|
|
||||||
|
# Set the working directory in the container
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# Copy your action's source files to the container
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Command to run when the Docker container starts
|
||||||
|
# It assumes the entrypoint is a script that handles the inputs and runs the desired commands
|
||||||
|
ENTRYPOINT ["sh", "./entrypoint.sh"]
|
22
action.yml
22
action.yml
|
@ -1,20 +1,20 @@
|
||||||
name: 'web3.news Publisher'
|
name: 'web3.news Publisher'
|
||||||
description: 'An action that publishes your site to the web3.news aggregator'
|
description: 'An action that publishes your site to the web3.news aggregator'
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'docker'
|
||||||
steps:
|
image: 'Dockerfile'
|
||||||
- uses: oven-sh/setup-bun@v1
|
args:
|
||||||
with:
|
- ${{ inputs.node }}
|
||||||
bun-version: 'latest'
|
- ${{ inputs.seed }}
|
||||||
- run: ls && bun ./src/index.ts
|
- ${{ inputs.folder }}
|
||||||
shell: bash
|
|
||||||
inputs:
|
inputs:
|
||||||
node:
|
node:
|
||||||
description: The S5 node to deploy to
|
description: 'The S5 node to deploy to'
|
||||||
required: true
|
required: true
|
||||||
seed:
|
seed:
|
||||||
description: Your site BIP39 seed
|
description: 'Your site BIP39 seed'
|
||||||
required: true
|
required: true
|
||||||
folder:
|
folder:
|
||||||
description: The folder to publish
|
description: 'The folder to publish'
|
||||||
default: public
|
required: false
|
||||||
|
default: 'public'
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Set the INPUT_* environment variables from script arguments
|
||||||
|
export INPUT_NODE=$1
|
||||||
|
export INPUT_SEED=$2
|
||||||
|
export INPUT_FOLDER=$3
|
||||||
|
|
||||||
|
# Providing a default value for INPUT_FOLDER if not set
|
||||||
|
if [ -z "$INPUT_FOLDER" ]
|
||||||
|
then
|
||||||
|
export INPUT_FOLDER="public"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Publishing to node: $INPUT_NODE"
|
||||||
|
echo "Publishing folder: $INPUT_FOLDER"
|
||||||
|
|
||||||
|
# Example command (replace with your actual command)
|
||||||
|
bun ./src/index.ts
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "web3.news-publisher",
|
"name": "web3.news-publisher",
|
||||||
"version": "0.1.0-develop.2",
|
"version": "0.1.0-develop.3",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"description": "Publish your site to the web3.news aggregator",
|
"description": "Publish your site to the web3.news aggregator",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue