Skip to content

Instantly share code, notes, and snippets.

View MitchPierias's full-sized avatar

Mitch Pierias MitchPierias

View GitHub Profile
#include <eosio/eosio.hpp>
#include <string>
using namespace eosio;
using namespace std;
class [[eosio::contract("example")]] example : public contract {
public:
using contract::contract;
[[eosio::action]] void post(const name author, const string message) {
require_auth(author);
message_table messages(_self, _self.value);
messages.emplace(author, [&](auto &post) {
post.id = messages.available_primary_key();
post.body = message;
@MitchPierias
MitchPierias / simple-gh-actions-pipeline.yml
Last active July 12, 2020 00:59
A simple GitHub Actions setup to get your static site continuous integration and deployment piepline started
name: Piepline
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]